-
Notifications
You must be signed in to change notification settings - Fork 750
Expand file tree
/
Copy pathround_trip_test.ts.snap
More file actions
55 lines (28 loc) · 1.69 KB
/
round_trip_test.ts.snap
File metadata and controls
55 lines (28 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
export const snapshot = {};
snapshot[`round trip - undefined 1`] = `"-1"`;
snapshot[`round trip - null 1`] = `"-2"`;
snapshot[`round trip - 1 1`] = `"[1]"`;
snapshot[`round trip - 2 1`] = `"[2]"`;
snapshot[`round trip - -2 1`] = `"[-2]"`;
snapshot[`round trip - Infinity 1`] = `"-4"`;
snapshot[`round trip - -Infinity 1`] = `"-5"`;
snapshot[`round trip - 0 1`] = `"[0]"`;
snapshot[`round trip - -0 1`] = `"-6"`;
snapshot[`round trip - NaN 1`] = `"-3"`;
snapshot[`round trip - 0 2`] = `"[0]"`;
snapshot[`round trip - true 1`] = `"[true]"`;
snapshot[`round trip - false 1`] = `"[false]"`;
snapshot[`round trip - 'abc' 1`] = `'["abc"]'`;
snapshot[`round trip - 1n 1`] = `'[["BigInt","1"]]'`;
snapshot[`round trip - -1n 1`] = `'[["BigInt","-1"]]'`;
snapshot[`round trip - [ 1, 2, 3 ] 1`] = `"[[1,2,3],1,2,3]"`;
snapshot[`round trip - [ null, undefined, -2 ] 1`] = `"[[-2,-1,1],-2]"`;
snapshot[`round trip - { a: 1, b: null, c: -2 } 1`] = `'[{"a":1,"b":-2,"c":2},1,-2]'`;
snapshot[`round trip - Uint8Array(3) [ 1, 2, 3 ] 1`] = `'[["Uint8Array","AQID"]]'`;
snapshot[`round trip - 1990-05-31T00:00:00.000Z 1`] = `'[["Date","1990-05-31T00:00:00.000Z"]]'`;
snapshot[`round trip - Map(2) { 1 => null, undefined => -2 } 1`] = `'[["Map",[1,-2,-1,2]],1,-2]'`;
snapshot[`round trip - Set(5) { 1, 2, null, -2, NaN } 1`] = `'[["Set",[1,2,-2,3,-3]],1,2,-2]'`;
snapshot[`round trip - [ 1, <1 empty item>, 3 ] 1`] = `"[[1,-7,2],1,3]"`;
snapshot[`round trip - /foo["]/ 1`] = `'[["RegExp","foo[\\\\"]", ""]]'`;
snapshot[`round trip - { a: { foo: 123 }, b: [ { foo: 123 }, { foo: 123 } ] } 1`] = `'[{"a":1,"b":3},{"foo":2},123,[1,1]]'`;
snapshot[`round trip - <ref *1> { a: 1, b: [Circular *1] } 1`] = `'[{"a":1,"b":0},1]'`;