Skip to content

Commit

Permalink
test: use assert.match in test-esm-import-meta
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Mar 3, 2025
1 parent 47a59bd commit 929891f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/es-module/test-esm-import-meta.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for (const descriptor of Object.values(descriptors)) {
}

const urlReg = /^file:\/\/\/.*\/test\/es-module\/test-esm-import-meta\.mjs$/;
assert(import.meta.url.match(urlReg));
assert.match(import.meta.url, urlReg);

// Match *nix paths: `/some/path/test/es-module`
// Match Windows paths: `d:\\some\\path\\test\\es-module`
Expand Down

0 comments on commit 929891f

Please sign in to comment.