test: verify dynamic import call with absolute path strings

PR-URL: https://github.com/nodejs/node/pull/49275
Refs: https://github.com/nodejs/node/pull/48655
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
Chengzhong Wu authored and Ulises Gascón committed 2023-09-10 18:09:39 +00:00
1 parent e5f3a694cf
commit 6740f3c209
1 file changed
+3
@@ -66,4 +66,7 @@ function expectFsNamespace(result) {
'ERR_UNSUPPORTED_ESM_URL_SCHEME',
msg);
}
// If the specifier is an origin-relative URL, it should
// be treated as a file: URL.
expectOkNamespace(import(targetURL.pathname));
})();