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 3b4c779 commit db4dcf9Copy full SHA for db4dcf9
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