diff --git a/test/sequential/test-module-loading.js b/test/sequential/test-module-loading.js index 7370f8290d484f..3028f2e92c34c6 100644 --- a/test/sequential/test-module-loading.js +++ b/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);