diff --git a/test/es-module/test-esm-dynamic-import.js b/test/es-module/test-esm-dynamic-import.js index 773b77350180fe..9c4d48aaf02da6 100644 --- a/test/es-module/test-esm-dynamic-import.js +++ b/test/es-module/test-esm-dynamic-import.js @@ -15,7 +15,7 @@ targetURL.pathname = absolutePath; function expectErrorProperty(result, propertyKey, value) { Promise.resolve(result) .catch(common.mustCall(error => { - assert.equal(error[propertyKey], value); + assert.strictEqual(error[propertyKey], value); })); } @@ -51,7 +51,7 @@ function expectOkNamespace(result) { function expectFsNamespace(result) { Promise.resolve(result) .then(common.mustCall(ns => { - assert.equal(typeof ns.default.writeFile, 'function'); + assert.strictEqual(typeof ns.default.writeFile, 'function'); })); } diff --git a/test/fixtures/es-module-loaders/loader-shared-dep.mjs b/test/fixtures/es-module-loaders/loader-shared-dep.mjs index e2a1cbd75d2535..1a19e4c8927527 100644 --- a/test/fixtures/es-module-loaders/loader-shared-dep.mjs +++ b/test/fixtures/es-module-loaders/loader-shared-dep.mjs @@ -2,6 +2,6 @@ import dep from './loader-dep.js'; import assert from 'assert'; export function resolve(specifier, base, defaultResolve) { - assert.equal(dep.format, 'esm'); + assert.strictEqual(dep.format, 'esm'); return defaultResolve(specifier, base); } diff --git a/test/fixtures/es-module-loaders/not-found-assert-loader.mjs b/test/fixtures/es-module-loaders/not-found-assert-loader.mjs index 7718cc7c4ba377..d15f294fe674bb 100644 --- a/test/fixtures/es-module-loaders/not-found-assert-loader.mjs +++ b/test/fixtures/es-module-loaders/not-found-assert-loader.mjs @@ -12,7 +12,7 @@ export async function resolve (specifier, base, defaultResolve) { await defaultResolve(specifier, base); } catch (e) { - assert.equal(e.code, 'MODULE_NOT_FOUND'); + assert.strictEqual(e.code, 'MODULE_NOT_FOUND'); return { format: 'builtin', url: 'fs'