mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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:
1 parent
c98aaf59bf
commit
1d68bdbe3f
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user