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:
James M Snell authored and Myles Borins committed 2016-06-23 16:59:39 -07:00
1 parent c98aaf59bf
commit 1d68bdbe3f
1 file changed
+2 -2
+2 -2
View File
@@ -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);