File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,14 @@ describe("drivers: indexeddb", () => {
24
24
await customStorage . clear ( ) ;
25
25
expect ( await customStorage . hasItem ( "second" ) ) . toBe ( false ) ;
26
26
} ) ;
27
-
27
+
28
28
it ( "properly handle raw items" , async ( ) => {
29
29
await customStorage . setItem ( "object" , { item : "foo" } ) ;
30
30
await customStorage . setItemRaw ( "rawObject" , { item : "foo" } ) ;
31
- expect ( await customStorage . getItemRaw ( "object" ) ) . toBe ( "{\"item\":\"foo\"}" ) ;
32
- expect ( await customStorage . getItemRaw ( "rawObject" ) ) . toStrictEqual ( { item : "foo" } ) ;
31
+ expect ( await customStorage . getItemRaw ( "object" ) ) . toBe ( '{"item":"foo"}' ) ;
32
+ expect ( await customStorage . getItemRaw ( "rawObject" ) ) . toStrictEqual ( {
33
+ item : "foo" ,
34
+ } ) ;
33
35
await customStorage . setItem ( "number" , 1234 ) ;
34
36
await customStorage . setItemRaw ( "rawNumber" , 1234 ) ;
35
37
expect ( await customStorage . getItemRaw ( "number" ) ) . toBe ( "1234" ) ;
@@ -38,5 +40,5 @@ describe("drivers: indexeddb", () => {
38
40
await customStorage . setItemRaw ( "rawBoolean" , true ) ;
39
41
expect ( await customStorage . getItemRaw ( "boolean" ) ) . toBe ( "true" ) ;
40
42
expect ( await customStorage . getItemRaw ( "rawBoolean" ) ) . toBe ( true ) ;
41
- } )
43
+ } ) ;
42
44
} ) ;
You can’t perform that action at this time.
0 commit comments