@@ -35,18 +35,18 @@ describe("drivers: http", async () => {
35
35
base : listener ! . url ,
36
36
headers : { "x-global-header" : "1" } ,
37
37
} ) ,
38
- async additionalTests ( { storage } ) {
38
+ async additionalTests ( ctx ) {
39
39
it ( "custom headers" , async ( ) => {
40
- await storage . setItem ( "authorized" , "test" , {
40
+ await ctx . storage . setItem ( "authorized" , "test" , {
41
41
headers : { "x-auth-header" : "1" } ,
42
42
} ) ;
43
43
} ) ;
44
44
it ( "null item" , async ( ) => {
45
- await storage . setItem ( "nullItem" , null ) ;
46
- await storage . setItem ( "nullStringItem" , "null" ) ;
47
- expect ( await storage . getItem ( "nullItem" ) ) . toBeNull ( ) ;
48
- expect ( await storage . getItem ( "nanItem" ) ) . toBeNull ( ) ;
49
- expect ( await storage . getItem ( "nullStringItem" ) ) . toBeNull ( ) ;
45
+ await ctx . storage . setItem ( "nullItem" , null ) ;
46
+ await ctx . storage . setItem ( "nullStringItem" , "null" ) ;
47
+ expect ( await ctx . storage . getItem ( "nullItem" ) ) . toBeNull ( ) ;
48
+ expect ( await ctx . storage . getItem ( "nanItem" ) ) . toBeNull ( ) ;
49
+ expect ( await ctx . storage . getItem ( "nullStringItem" ) ) . toBeNull ( ) ;
50
50
} ) ;
51
51
} ,
52
52
} ) ;
0 commit comments