Skip to content

Commit 1d68bdb

Browse files
jasnellMyles Borins
authored and
Myles Borins
committed
test: fix error message checks in test-module-loading
PR-URL: #5986 Reviewed-By: Colin Ihrig <[email protected]>
1 parent c98aaf5 commit 1d68bdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sequential/test-module-loading.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,12 @@ assert.deepEqual(children, {
251251
assert.throws(function() {
252252
console.error('require non-string');
253253
require({ foo: 'bar' });
254-
}, 'path must be a string');
254+
}, /path must be a string/);
255255

256256
assert.throws(function() {
257257
console.error('require empty string');
258258
require('');
259-
}, 'missing path');
259+
}, /missing path/);
260260

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

0 commit comments

Comments
 (0)