summaryrefslogtreecommitdiff
path: root/test/es-module/test-esm-loader-search.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/es-module/test-esm-loader-search.js')
-rw-r--r--test/es-module/test-esm-loader-search.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/es-module/test-esm-loader-search.js b/test/es-module/test-esm-loader-search.js
index 4eb6b9fd4b..4a85ea9325 100644
--- a/test/es-module/test-esm-loader-search.js
+++ b/test/es-module/test-esm-loader-search.js
@@ -6,13 +6,12 @@
const common = require('../common');
const { search } = require('internal/loader/DefaultResolve');
-const errors = require('internal/errors');
common.expectsError(
() => search('target', undefined),
{
code: 'ERR_MISSING_MODULE',
- type: errors.Error,
+ type: Error,
message: 'Cannot find module target'
}
);