Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
jsumners and aduh95 committed Jul 12, 2023
1 parent 45315d7 commit c6efbac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/es-module/test-esm-import-meta.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const urlReg = /^file:\/\/\/.*\/test\/es-module\/test-esm-import-meta\.mjs$/;
assert(import.meta.url.match(urlReg));

const dirReg = /^\/.*\/test\/es-module$/;
assert(import.meta.__dirname.match(dirReg));
assert.match(import.meta.__dirname, dirReg);

const fileReg = /^\/.*\/test\/es-module\/test-esm-import-meta\.mjs$/;
assert(import.meta.__filename.match(fileReg));
assert.match(import.meta.__filename, fileReg);

// Verify that `data:` imports do not behave like `file:` imports.
import dataDirname from 'data:text/javascript,export default import.meta.__dirname';
Expand Down

0 comments on commit c6efbac

Please sign in to comment.