Skip to content

Commit 365faa7

Browse files
authored
test: use assert.match in test-esm-import-meta
PR-URL: nodejs#57290 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 8032e96 commit 365faa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/es-module/test-esm-import-meta.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ for (const descriptor of Object.values(descriptors)) {
1717
}
1818

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

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

0 commit comments

Comments
 (0)