@@ -16,19 +16,19 @@ test('object with nested random property', (t) => {
16
16
}
17
17
const stringify = build ( schema )
18
18
19
- t . is ( stringify ( {
19
+ t . equal ( stringify ( {
20
20
id : 1 , name : 'string'
21
21
} ) , '{"id":1,"name":"string"}' )
22
22
23
- t . is ( stringify ( {
23
+ t . equal ( stringify ( {
24
24
id : 1 , name : { first : 'name' , last : 'last' }
25
25
} ) , '{"id":1,"name":{"first":"name","last":"last"}}' )
26
26
27
- t . is ( stringify ( {
27
+ t . equal ( stringify ( {
28
28
id : 1 , name : null
29
29
} ) , '{"id":1,"name":null}' )
30
30
31
- t . is ( stringify ( {
31
+ t . equal ( stringify ( {
32
32
id : 1 , name : [ 'first' , 'last' ]
33
33
} ) , '{"id":1,"name":["first","last"]}' )
34
34
} )
@@ -45,7 +45,7 @@ test('object with empty schema with $id: undefined set', (t) => {
45
45
}
46
46
}
47
47
const stringify = build ( schema )
48
- t . is ( stringify ( {
48
+ t . equal ( stringify ( {
49
49
name : 'string'
50
50
} ) , '{"name":"string"}' )
51
51
} )
@@ -61,7 +61,7 @@ test('array with random items', (t) => {
61
61
const stringify = build ( schema )
62
62
63
63
const value = stringify ( [ 1 , 'string' , null ] )
64
- t . is ( value , '[1,"string",null]' )
64
+ t . equal ( value , '[1,"string",null]' )
65
65
} )
66
66
67
67
test ( 'empty schema' , ( t ) => {
@@ -71,13 +71,13 @@ test('empty schema', (t) => {
71
71
72
72
const stringify = build ( schema )
73
73
74
- t . is ( stringify ( null ) , 'null' )
75
- t . is ( stringify ( 1 ) , '1' )
76
- t . is ( stringify ( true ) , 'true' )
77
- t . is ( stringify ( 'hello' ) , '"hello"' )
78
- t . is ( stringify ( { } ) , '{}' )
79
- t . is ( stringify ( { x : 10 } ) , '{"x":10}' )
80
- t . is ( stringify ( [ true , 1 , 'hello' ] ) , '[true,1,"hello"]' )
74
+ t . equal ( stringify ( null ) , 'null' )
75
+ t . equal ( stringify ( 1 ) , '1' )
76
+ t . equal ( stringify ( true ) , 'true' )
77
+ t . equal ( stringify ( 'hello' ) , '"hello"' )
78
+ t . equal ( stringify ( { } ) , '{}' )
79
+ t . equal ( stringify ( { x : 10 } ) , '{"x":10}' )
80
+ t . equal ( stringify ( [ true , 1 , 'hello' ] ) , '[true,1,"hello"]' )
81
81
} )
82
82
83
83
test ( 'empty schema on nested object' , ( t ) => {
@@ -92,13 +92,13 @@ test('empty schema on nested object', (t) => {
92
92
93
93
const stringify = build ( schema )
94
94
95
- t . is ( stringify ( { x : null } ) , '{"x":null}' )
96
- t . is ( stringify ( { x : 1 } ) , '{"x":1}' )
97
- t . is ( stringify ( { x : true } ) , '{"x":true}' )
98
- t . is ( stringify ( { x : 'hello' } ) , '{"x":"hello"}' )
99
- t . is ( stringify ( { x : { } } ) , '{"x":{}}' )
100
- t . is ( stringify ( { x : { x : 10 } } ) , '{"x":{"x":10}}' )
101
- t . is ( stringify ( { x : [ true , 1 , 'hello' ] } ) , '{"x":[true,1,"hello"]}' )
95
+ t . equal ( stringify ( { x : null } ) , '{"x":null}' )
96
+ t . equal ( stringify ( { x : 1 } ) , '{"x":1}' )
97
+ t . equal ( stringify ( { x : true } ) , '{"x":true}' )
98
+ t . equal ( stringify ( { x : 'hello' } ) , '{"x":"hello"}' )
99
+ t . equal ( stringify ( { x : { } } ) , '{"x":{}}' )
100
+ t . equal ( stringify ( { x : { x : 10 } } ) , '{"x":{"x":10}}' )
101
+ t . equal ( stringify ( { x : [ true , 1 , 'hello' ] } ) , '{"x":[true,1,"hello"]}' )
102
102
} )
103
103
104
104
test ( 'empty schema on array' , ( t ) => {
@@ -111,7 +111,7 @@ test('empty schema on array', (t) => {
111
111
112
112
const stringify = build ( schema )
113
113
114
- t . is ( stringify ( [ 1 , true , 'hello' , [ ] , { x : 1 } ] ) , '[1,true,"hello",[],{"x":1}]' )
114
+ t . equal ( stringify ( [ 1 , true , 'hello' , [ ] , { x : 1 } ] ) , '[1,true,"hello",[],{"x":1}]' )
115
115
} )
116
116
117
117
test ( 'empty schema on anyOf' , ( t ) => {
@@ -147,8 +147,8 @@ test('empty schema on anyOf', (t) => {
147
147
148
148
const stringify = build ( schema )
149
149
150
- t . is ( stringify ( { kind : 'Bar' , value : 1 } ) , '{"kind":"Bar","value":1}' )
151
- t . is ( stringify ( { kind : 'Foo' , value : 1 } ) , '{"kind":"Foo","value":1}' )
152
- t . is ( stringify ( { kind : 'Foo' , value : true } ) , '{"kind":"Foo","value":true}' )
153
- t . is ( stringify ( { kind : 'Foo' , value : 'hello' } ) , '{"kind":"Foo","value":"hello"}' )
150
+ t . equal ( stringify ( { kind : 'Bar' , value : 1 } ) , '{"kind":"Bar","value":1}' )
151
+ t . equal ( stringify ( { kind : 'Foo' , value : 1 } ) , '{"kind":"Foo","value":1}' )
152
+ t . equal ( stringify ( { kind : 'Foo' , value : true } ) , '{"kind":"Foo","value":true}' )
153
+ t . equal ( stringify ( { kind : 'Foo' , value : 'hello' } ) , '{"kind":"Foo","value":"hello"}' )
154
154
} )
0 commit comments