Skip to content

Commit f739a12

Browse files
committed
test: fix error message checks in test-module-loading
PR-URL: #5986 Reviewed-By: Colin Ihrig <[email protected]>
1 parent 64bf4b3 commit f739a12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sequential/test-module-loading.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,12 @@ assert.deepEqual(children, {
247247
assert.throws(function() {
248248
console.error('require non-string');
249249
require({ foo: 'bar' });
250-
}, 'path must be a string or Buffer');
250+
}, /path must be a string/);
251251

252252
assert.throws(function() {
253253
console.error('require empty string');
254254
require('');
255-
}, 'missing path');
255+
}, /missing path/);
256256

257257
process.on('exit', function() {
258258
assert.ok(a.A instanceof Function);

0 commit comments

Comments
 (0)