Skip to content

Commit

Permalink
test: fix error message checks in test-module-loading
Browse files Browse the repository at this point in the history
PR-URL: #5986
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
jasnell authored and Myles Borins committed Jun 23, 2016
1 parent c98aaf5 commit 1d68bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sequential/test-module-loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ assert.deepEqual(children, {
assert.throws(function() {
console.error('require non-string');
require({ foo: 'bar' });
}, 'path must be a string');
}, /path must be a string/);

assert.throws(function() {
console.error('require empty string');
require('');
}, 'missing path');
}, /missing path/);

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

0 comments on commit 1d68bdb

Please sign in to comment.