From 5e75ebd62beb32d95ef07995adcb699fe28df12d Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Sun, 6 Aug 2023 01:45:09 +0000 Subject: [PATCH] add test case for no extension --- test/es-module/test-esm-import-meta-resolve.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/es-module/test-esm-import-meta-resolve.mjs b/test/es-module/test-esm-import-meta-resolve.mjs index cb940581e3f510d..8495c1613128222 100644 --- a/test/es-module/test-esm-import-meta-resolve.mjs +++ b/test/es-module/test-esm-import-meta-resolve.mjs @@ -11,8 +11,8 @@ assert.strictEqual(import.meta.resolve('./test-esm-import-meta.mjs'), dirname + 'test-esm-import-meta.mjs'); const notFound = import.meta.resolve('./notfound.mjs'); assert.strictEqual(new URL(notFound).href, new URL('./notfound.mjs', import.meta.url).href); -const otherExtension = import.meta.resolve('./asset.ext'); -assert.strictEqual(new URL(otherExtension).href, new URL('./asset.ext', import.meta.url).href); +const noExtension = import.meta.resolve('./asset'); +assert.strictEqual(new URL(noExtension).href, new URL('./asset', import.meta.url).href); try { import.meta.resolve('does-not-exist'); assert.fail();