• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import { mustCall } from '../common/index.mjs';
2import { strictEqual } from 'assert';
3
4import { importFixture } from '../fixtures/pkgexports.mjs';
5
6importFixture('as%2Ff').catch(mustCall((err) => {
7  strictEqual(err.code, 'ERR_INVALID_MODULE_SPECIFIER');
8}));
9
10importFixture('as%5Cf').catch(mustCall((err) => {
11  strictEqual(err.code, 'ERR_INVALID_MODULE_SPECIFIER');
12}));
13
14importFixture('as\\df').catch(mustCall((err) => {
15  strictEqual(err.code, 'ERR_INVALID_MODULE_SPECIFIER');
16}));
17
18importFixture('@as@df').catch(mustCall((err) => {
19  strictEqual(err.code, 'ERR_INVALID_MODULE_SPECIFIER');
20}));
21