summaryrefslogtreecommitdiff
path: root/test/fixtures/require-resolve.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixtures/require-resolve.js')
-rw-r--r--test/fixtures/require-resolve.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fixtures/require-resolve.js b/test/fixtures/require-resolve.js
index 66521d12e9..e3a4886bce 100644
--- a/test/fixtures/require-resolve.js
+++ b/test/fixtures/require-resolve.js
@@ -86,11 +86,11 @@ assert.throws(() => {
}
// Test paths option validation
-common.expectsError(() => {
+assert.throws(() => {
require.resolve('.\\three.js', { paths: 'foo' })
}, {
code: 'ERR_INVALID_OPT_VALUE',
- type: TypeError,
+ name: 'TypeError',
});
// Verify that the default require.resolve() is used for empty options.