@@ -2,47 +2,47 @@ export type TestValue = string | Record<string, string>;
2
2
3
3
export type TestStep =
4
4
| {
5
- command : ' merge' | ' set' ;
5
+ command : " merge" | " set" ;
6
6
key : string ;
7
7
value : TestValue ;
8
8
expected ?: TestValue | null ;
9
9
}
10
10
| {
11
- command : ' remove' ;
11
+ command : " remove" ;
12
12
key : string ;
13
13
} ;
14
14
15
15
const tests : Record < string , TestStep [ ] > = {
16
- ' Should store value in AsyncStorage' : [
17
- { command : ' set' , key : 'a' , value : '0' } ,
18
- { command : ' set' , key : 'a' , value : '10' } ,
19
- { command : ' set' , key : 'a' , value : '20' } ,
20
- { command : ' set' , key : 'a' , value : '30' } ,
21
- { command : ' set' , key : 'a' , value : '40' } ,
16
+ " Should store value in AsyncStorage" : [
17
+ { command : " set" , key : "a" , value : "0" } ,
18
+ { command : " set" , key : "a" , value : "10" } ,
19
+ { command : " set" , key : "a" , value : "20" } ,
20
+ { command : " set" , key : "a" , value : "30" } ,
21
+ { command : " set" , key : "a" , value : "40" } ,
22
22
] ,
23
- ' Should clear item' : [
24
- { command : ' set' , key : 'a' , value : '42' } ,
25
- { command : ' remove' , key : 'a' } ,
23
+ " Should clear item" : [
24
+ { command : " set" , key : "a" , value : "42" } ,
25
+ { command : " remove" , key : "a" } ,
26
26
] ,
27
- ' Should merge items' : [
27
+ " Should merge items" : [
28
28
{
29
- command : ' set' ,
30
- key : 'a' ,
29
+ command : " set" ,
30
+ key : "a" ,
31
31
value : {
32
- name : ' Jerry' ,
33
- age : '21' ,
34
- eyesColor : ' blue' ,
35
- shoeSize : '9' ,
32
+ name : " Jerry" ,
33
+ age : "21" ,
34
+ eyesColor : " blue" ,
35
+ shoeSize : "9" ,
36
36
} ,
37
37
} ,
38
38
{
39
- command : ' merge' ,
40
- key : 'a' ,
39
+ command : " merge" ,
40
+ key : "a" ,
41
41
value : {
42
- name : ' Sarah' ,
43
- age : '23' ,
44
- eyesColor : ' green' ,
45
- shoeSize : '10' ,
42
+ name : " Sarah" ,
43
+ age : "23" ,
44
+ eyesColor : " green" ,
45
+ shoeSize : "10" ,
46
46
} ,
47
47
} ,
48
48
] ,
0 commit comments