@@ -23,55 +23,55 @@ const expectedPackageHack =
23
23
24
24
const expectedBare = errTemplate ( 'deep-fail' , 'comeOn' , '{ comeOn }' ) ;
25
25
26
- rejects ( async ( ) => {
26
+ await rejects ( async ( ) => {
27
27
await import ( `${ fixtureBase } /single-quote.mjs` ) ;
28
28
} , {
29
29
name : 'SyntaxError' ,
30
30
message : expectedRelative
31
31
} , 'should support relative specifiers with single quotes' ) ;
32
32
33
- rejects ( async ( ) => {
33
+ await rejects ( async ( ) => {
34
34
await import ( `${ fixtureBase } /double-quote.mjs` ) ;
35
35
} , {
36
36
name : 'SyntaxError' ,
37
37
message : expectedRelative
38
38
} , 'should support relative specifiers with double quotes' ) ;
39
39
40
- rejects ( async ( ) => {
40
+ await rejects ( async ( ) => {
41
41
await import ( `${ fixtureBase } /renamed-import.mjs` ) ;
42
42
} , {
43
43
name : 'SyntaxError' ,
44
44
message : expectedRenamed
45
45
} , 'should correctly format named imports with renames' ) ;
46
46
47
- rejects ( async ( ) => {
47
+ await rejects ( async ( ) => {
48
48
await import ( `${ fixtureBase } /multi-line.mjs` ) ;
49
49
} , {
50
50
name : 'SyntaxError' ,
51
51
message : expectedWithoutExample ,
52
52
} , 'should correctly format named imports across multiple lines' ) ;
53
53
54
- rejects ( async ( ) => {
54
+ await rejects ( async ( ) => {
55
55
await import ( `${ fixtureBase } /json-hack.mjs` ) ;
56
56
} , {
57
57
name : 'SyntaxError' ,
58
58
message : expectedPackageHack
59
59
} , 'should respect recursive package.json for module type' ) ;
60
60
61
- rejects ( async ( ) => {
61
+ await rejects ( async ( ) => {
62
62
await import ( `${ fixtureBase } /bare-import-single.mjs` ) ;
63
63
} , {
64
64
name : 'SyntaxError' ,
65
65
message : expectedBare
66
66
} , 'should support bare specifiers with single quotes' ) ;
67
67
68
- rejects ( async ( ) => {
68
+ await rejects ( async ( ) => {
69
69
await import ( `${ fixtureBase } /bare-import-double.mjs` ) ;
70
70
} , {
71
71
name : 'SyntaxError' ,
72
72
message : expectedBare
73
73
} , 'should support bare specifiers with double quotes' ) ;
74
74
75
- rejects ( async ( ) => {
75
+ await rejects ( async ( ) => {
76
76
await import ( `${ fixtureBase } /escaped-single-quote.mjs` ) ;
77
77
} , / i m p o r t p k g f r o m ' \. \/ o h ' n o \. c j s ' / , 'should support relative specifiers with escaped single quote' ) ;
0 commit comments