diff --git a/test/resolver_sync.js b/test/resolver_sync.js index 5599ad81..f3314390 100644 --- a/test/resolver_sync.js +++ b/test/resolver_sync.js @@ -290,6 +290,7 @@ test('not a directory', function (t) { } catch (err) { t.ok(err, 'a non-directory errors'); t.equal(err && err.message, 'Cannot find module \'' + path + "' from '" + __filename + "'"); + t.equal(err && err.code, 'MODULE_NOT_FOUND'); } t.end(); });