Browse Source

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>
process-exit-stdio-flushing
James M Snell 9 years ago
parent
commit
f739a1222f
  1. 4
      test/sequential/test-module-loading.js

4
test/sequential/test-module-loading.js

@ -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…
Cancel
Save