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 committed Apr 4, 2016
1 parent 64bf4b3 commit f739a12
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 @@ -247,12 +247,12 @@ assert.deepEqual(children, {
assert.throws(function() {
console.error('require non-string');
require({ foo: 'bar' });
}, 'path must be a string or Buffer');
}, /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 f739a12

Please sign in to comment.