@@ -23,55 +23,55 @@ const expectedPackageHack =
2323
2424const expectedBare = errTemplate ( 'deep-fail' , 'comeOn' , '{ comeOn }' ) ;
2525
26- rejects ( async ( ) => {
26+ await rejects ( async ( ) => {
2727 await import ( `${ fixtureBase } /single-quote.mjs` ) ;
2828} , {
2929 name : 'SyntaxError' ,
3030 message : expectedRelative
3131} , 'should support relative specifiers with single quotes' ) ;
3232
33- rejects ( async ( ) => {
33+ await rejects ( async ( ) => {
3434 await import ( `${ fixtureBase } /double-quote.mjs` ) ;
3535} , {
3636 name : 'SyntaxError' ,
3737 message : expectedRelative
3838} , 'should support relative specifiers with double quotes' ) ;
3939
40- rejects ( async ( ) => {
40+ await rejects ( async ( ) => {
4141 await import ( `${ fixtureBase } /renamed-import.mjs` ) ;
4242} , {
4343 name : 'SyntaxError' ,
4444 message : expectedRenamed
4545} , 'should correctly format named imports with renames' ) ;
4646
47- rejects ( async ( ) => {
47+ await rejects ( async ( ) => {
4848 await import ( `${ fixtureBase } /multi-line.mjs` ) ;
4949} , {
5050 name : 'SyntaxError' ,
5151 message : expectedWithoutExample ,
5252} , 'should correctly format named imports across multiple lines' ) ;
5353
54- rejects ( async ( ) => {
54+ await rejects ( async ( ) => {
5555 await import ( `${ fixtureBase } /json-hack.mjs` ) ;
5656} , {
5757 name : 'SyntaxError' ,
5858 message : expectedPackageHack
5959} , 'should respect recursive package.json for module type' ) ;
6060
61- rejects ( async ( ) => {
61+ await rejects ( async ( ) => {
6262 await import ( `${ fixtureBase } /bare-import-single.mjs` ) ;
6363} , {
6464 name : 'SyntaxError' ,
6565 message : expectedBare
6666} , 'should support bare specifiers with single quotes' ) ;
6767
68- rejects ( async ( ) => {
68+ await rejects ( async ( ) => {
6969 await import ( `${ fixtureBase } /bare-import-double.mjs` ) ;
7070} , {
7171 name : 'SyntaxError' ,
7272 message : expectedBare
7373} , 'should support bare specifiers with double quotes' ) ;
7474
75- rejects ( async ( ) => {
75+ await rejects ( async ( ) => {
7676 await import ( `${ fixtureBase } /escaped-single-quote.mjs` ) ;
7777} , / 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