@@ -37,55 +37,55 @@ describe('--experimental-default-type=module should not parse paths as URLs', {
37
37
it ( 'should not parse a `?` in a filename as starting a query string' , async ( ) => {
38
38
const { code, signal, stdout, stderr } = await spawnPromisified ( process . execPath , [
39
39
'--experimental-default-type=module' ,
40
- 'wha? .js' ,
40
+ 'file#1 .js' ,
41
41
] , {
42
42
cwd : fixtures . path ( 'es-modules/package-without-type' ) ,
43
43
} ) ;
44
44
45
45
strictEqual ( stderr , '' ) ;
46
- strictEqual ( stdout , 'wha? \n' ) ;
46
+ strictEqual ( stdout , 'file#1 \n' ) ;
47
47
strictEqual ( code , 0 ) ;
48
48
strictEqual ( signal , null ) ;
49
49
} ) ;
50
50
51
51
it ( 'should resolve `..`' , async ( ) => {
52
52
const { code, signal, stdout, stderr } = await spawnPromisified ( process . execPath , [
53
53
'--experimental-default-type=module' ,
54
- '../package-without-type/wha? .js' ,
54
+ '../package-without-type/file#1 .js' ,
55
55
] , {
56
56
cwd : fixtures . path ( 'es-modules/package-without-type' ) ,
57
57
} ) ;
58
58
59
59
strictEqual ( stderr , '' ) ;
60
- strictEqual ( stdout , 'wha? \n' ) ;
60
+ strictEqual ( stdout , 'file#1 \n' ) ;
61
61
strictEqual ( code , 0 ) ;
62
62
strictEqual ( signal , null ) ;
63
63
} ) ;
64
64
65
65
it ( 'should allow a leading `./`' , async ( ) => {
66
66
const { code, signal, stdout, stderr } = await spawnPromisified ( process . execPath , [
67
67
'--experimental-default-type=module' ,
68
- './wha? .js' ,
68
+ './file#1 .js' ,
69
69
] , {
70
70
cwd : fixtures . path ( 'es-modules/package-without-type' ) ,
71
71
} ) ;
72
72
73
73
strictEqual ( stderr , '' ) ;
74
- strictEqual ( stdout , 'wha? \n' ) ;
74
+ strictEqual ( stdout , 'file#1 \n' ) ;
75
75
strictEqual ( code , 0 ) ;
76
76
strictEqual ( signal , null ) ;
77
77
} ) ;
78
78
79
79
it ( 'should not require a leading `./`' , async ( ) => {
80
80
const { code, signal, stdout, stderr } = await spawnPromisified ( process . execPath , [
81
81
'--experimental-default-type=module' ,
82
- 'wha? .js' ,
82
+ 'file#1 .js' ,
83
83
] , {
84
84
cwd : fixtures . path ( 'es-modules/package-without-type' ) ,
85
85
} ) ;
86
86
87
87
strictEqual ( stderr , '' ) ;
88
- strictEqual ( stdout , 'wha? \n' ) ;
88
+ strictEqual ( stdout , 'file#1 \n' ) ;
89
89
strictEqual ( code , 0 ) ;
90
90
strictEqual ( signal , null ) ;
91
91
} ) ;
0 commit comments