@@ -18,7 +18,7 @@ test('additionalProperties', (t) => {
1818 }
1919 } )
2020
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 } }
2222 t . equal ( '{"foo":"42","ofoo":"true","foof":"string","objfoo":"[object Object]","str":"test"}' , stringify ( obj ) )
2323} )
2424
@@ -177,7 +177,7 @@ test('nested additionalProperties', (t) => {
177177 }
178178 } )
179179
180- let obj = [ { ap : { value : 'string' } } ]
180+ const obj = [ { ap : { value : 'string' } } ]
181181 t . equal ( '[{"ap":{"value":"string"}}]' , stringify ( obj ) )
182182} )
183183
@@ -214,7 +214,7 @@ test('very nested additionalProperties', (t) => {
214214 }
215215 } )
216216
217- let obj = [ { ap : { nested : { moarNested : { finally : { value : 'str' } } } } } ]
217+ const obj = [ { ap : { nested : { moarNested : { finally : { value : 'str' } } } } } ]
218218 t . equal ( '[{"ap":{"nested":{"moarNested":{"finally":{"value":"str"}}}}}]' , stringify ( obj ) )
219219} )
220220
@@ -231,7 +231,7 @@ test('nested additionalProperties set to true', (t) => {
231231 }
232232 } )
233233
234- let obj = { ap : { value : 'string' , someNumber : 42 } }
234+ const obj = { ap : { value : 'string' , someNumber : 42 } }
235235 t . equal ( '{"ap":{"value":"string","someNumber":42}}' , stringify ( obj ) )
236236} )
237237
@@ -248,6 +248,6 @@ test('field passed to fastSafeStringify as undefined should be removed', (t) =>
248248 }
249249 } )
250250
251- let obj = { ap : { value : 'string' , someNumber : undefined } }
251+ const obj = { ap : { value : 'string' , someNumber : undefined } }
252252 t . equal ( '{"ap":{"value":"string"}}' , stringify ( obj ) )
253253} )
0 commit comments