We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assert.match
test-esm-import-meta
1 parent 4e438c3 commit 4af2f7fCopy full SHA for 4af2f7f
test/es-module/test-esm-import-meta.mjs
@@ -17,7 +17,7 @@ for (const descriptor of Object.values(descriptors)) {
17
}
18
19
const urlReg = /^file:\/\/\/.*\/test\/es-module\/test-esm-import-meta\.mjs$/;
20
-assert(import.meta.url.match(urlReg));
+assert.match(import.meta.url, urlReg);
21
22
// Match *nix paths: `/some/path/test/es-module`
23
// Match Windows paths: `d:\\some\\path\\test\\es-module`
0 commit comments