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 40d81f4 commit 6bd2c50Copy full SHA for 6bd2c50
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