@@ -18,7 +18,7 @@ test('additionalProperties', (t) => {
18
18
}
19
19
} )
20
20
21
- let obj = { str : 'test' , foo : 42 , ofoo : true , foof : 'string' , objfoo : { a : true } }
21
+ const obj = { str : 'test' , foo : 42 , ofoo : true , foof : 'string' , objfoo : { a : true } }
22
22
t . equal ( '{"foo":"42","ofoo":"true","foof":"string","objfoo":"[object Object]","str":"test"}' , stringify ( obj ) )
23
23
} )
24
24
@@ -177,7 +177,7 @@ test('nested additionalProperties', (t) => {
177
177
}
178
178
} )
179
179
180
- let obj = [ { ap : { value : 'string' } } ]
180
+ const obj = [ { ap : { value : 'string' } } ]
181
181
t . equal ( '[{"ap":{"value":"string"}}]' , stringify ( obj ) )
182
182
} )
183
183
@@ -214,7 +214,7 @@ test('very nested additionalProperties', (t) => {
214
214
}
215
215
} )
216
216
217
- let obj = [ { ap : { nested : { moarNested : { finally : { value : 'str' } } } } } ]
217
+ const obj = [ { ap : { nested : { moarNested : { finally : { value : 'str' } } } } } ]
218
218
t . equal ( '[{"ap":{"nested":{"moarNested":{"finally":{"value":"str"}}}}}]' , stringify ( obj ) )
219
219
} )
220
220
@@ -231,7 +231,7 @@ test('nested additionalProperties set to true', (t) => {
231
231
}
232
232
} )
233
233
234
- let obj = { ap : { value : 'string' , someNumber : 42 } }
234
+ const obj = { ap : { value : 'string' , someNumber : 42 } }
235
235
t . equal ( '{"ap":{"value":"string","someNumber":42}}' , stringify ( obj ) )
236
236
} )
237
237
@@ -248,6 +248,6 @@ test('field passed to fastSafeStringify as undefined should be removed', (t) =>
248
248
}
249
249
} )
250
250
251
- let obj = { ap : { value : 'string' , someNumber : undefined } }
251
+ const obj = { ap : { value : 'string' , someNumber : undefined } }
252
252
t . equal ( '{"ap":{"value":"string"}}' , stringify ( obj ) )
253
253
} )
0 commit comments