summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2016-03-31 19:50:29 -0700
committerJames M Snell <jasnell@gmail.com>2016-04-03 18:10:59 -0700
commitf739a1222f06593c107eb737119a6fce18f91c51 (patch)
tree2f09cd370565c3e7cbfb5e7ff8d195a603b85692 /test
parent64bf4b31c6f52d9668e81a6dafae5840de9569c7 (diff)
downloadandroid-node-v8-f739a1222f06593c107eb737119a6fce18f91c51.tar.gz
android-node-v8-f739a1222f06593c107eb737119a6fce18f91c51.tar.bz2
android-node-v8-f739a1222f06593c107eb737119a6fce18f91c51.zip
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>
Diffstat (limited to 'test')
-rw-r--r--test/sequential/test-module-loading.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sequential/test-module-loading.js b/test/sequential/test-module-loading.js
index 7370f8290d..3028f2e92c 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);