Skip to content

Commit

Permalink
add test case for no extension
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Aug 6, 2023
1 parent 22679a6 commit 5e75ebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/es-module/test-esm-import-meta-resolve.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5e75ebd

Please sign in to comment.