test: fix error message checks in test-module-loading
PR-URL: https://github.com/nodejs/node/pull/5986 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
64bf4b31c6
commit
f739a1222f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user