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
  • Loading branch information
jasnell committed Apr 2, 2016
1 parent 0551021 commit 4cbcf65
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 4cbcf65

Please sign in to comment.