@@ -16,19 +16,19 @@ test('object with nested random property', (t) => {
1616 }
1717 const stringify = build ( schema )
1818
19- t . is ( stringify ( {
19+ t . equal ( stringify ( {
2020 id : 1 , name : 'string'
2121 } ) , '{"id":1,"name":"string"}' )
2222
23- t . is ( stringify ( {
23+ t . equal ( stringify ( {
2424 id : 1 , name : { first : 'name' , last : 'last' }
2525 } ) , '{"id":1,"name":{"first":"name","last":"last"}}' )
2626
27- t . is ( stringify ( {
27+ t . equal ( stringify ( {
2828 id : 1 , name : null
2929 } ) , '{"id":1,"name":null}' )
3030
31- t . is ( stringify ( {
31+ t . equal ( stringify ( {
3232 id : 1 , name : [ 'first' , 'last' ]
3333 } ) , '{"id":1,"name":["first","last"]}' )
3434} )
@@ -45,7 +45,7 @@ test('object with empty schema with $id: undefined set', (t) => {
4545 }
4646 }
4747 const stringify = build ( schema )
48- t . is ( stringify ( {
48+ t . equal ( stringify ( {
4949 name : 'string'
5050 } ) , '{"name":"string"}' )
5151} )
@@ -61,7 +61,7 @@ test('array with random items', (t) => {
6161 const stringify = build ( schema )
6262
6363 const value = stringify ( [ 1 , 'string' , null ] )
64- t . is ( value , '[1,"string",null]' )
64+ t . equal ( value , '[1,"string",null]' )
6565} )
6666
6767test ( 'empty schema' , ( t ) => {
@@ -71,13 +71,13 @@ test('empty schema', (t) => {
7171
7272 const stringify = build ( schema )
7373
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"]' )
8181} )
8282
8383test ( 'empty schema on nested object' , ( t ) => {
@@ -92,13 +92,13 @@ test('empty schema on nested object', (t) => {
9292
9393 const stringify = build ( schema )
9494
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"]}' )
102102} )
103103
104104test ( 'empty schema on array' , ( t ) => {
@@ -111,7 +111,7 @@ test('empty schema on array', (t) => {
111111
112112 const stringify = build ( schema )
113113
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}]' )
115115} )
116116
117117test ( 'empty schema on anyOf' , ( t ) => {
@@ -147,8 +147,8 @@ test('empty schema on anyOf', (t) => {
147147
148148 const stringify = build ( schema )
149149
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"}' )
154154} )
0 commit comments