@@ -276,15 +276,15 @@ describe("primitives", function () {
276276
277277 it ( "should get all key names" , function ( ) {
278278 const expectedKeys = [ "FontFile" , "FontFile2" , "FontFile3" ] ;
279- const keys = dictWithManyKeys . getKeys ( ) ;
279+ const keys = [ ... dictWithManyKeys . getKeys ( ) ] ;
280280
281281 expect ( keys . sort ( ) ) . toEqual ( expectedKeys ) ;
282282 } ) ;
283283
284284 it ( "should get all raw values" , function ( ) {
285285 // Test direct objects:
286286 const expectedRawValues1 = [ testFontFile , testFontFile2 , testFontFile3 ] ;
287- const rawValues1 = dictWithManyKeys . getRawValues ( ) ;
287+ const rawValues1 = [ ... dictWithManyKeys . getRawValues ( ) ] ;
288288
289289 expect ( rawValues1 . sort ( ) ) . toEqual ( expectedRawValues1 ) ;
290290
@@ -305,7 +305,7 @@ describe("primitives", function () {
305305 dict . set ( "Contents" , contentsRef ) ;
306306
307307 const expectedRawValues2 = [ contentsRef , resourcesRef , typeName ] ;
308- const rawValues2 = dict . getRawValues ( ) ;
308+ const rawValues2 = [ ... dict . getRawValues ( ) ] ;
309309
310310 expect ( rawValues2 . sort ( ) ) . toEqual ( expectedRawValues2 ) ;
311311 } ) ;
@@ -337,7 +337,7 @@ describe("primitives", function () {
337337 xref : null ,
338338 dictArray : [ dictWithManyKeys , dictWithSizeKey , fontFileDict ] ,
339339 } ) ;
340- const mergedKeys = mergedDict . getKeys ( ) ;
340+ const mergedKeys = [ ... mergedDict . getKeys ( ) ] ;
341341
342342 expect ( mergedKeys . sort ( ) ) . toEqual ( expectedKeys ) ;
343343 expect ( mergedDict . get ( "FontFile" ) ) . toEqual ( testFontFile ) ;
@@ -374,14 +374,14 @@ describe("primitives", function () {
374374 expect ( mergedFontDict instanceof Dict ) . toEqual ( true ) ;
375375 expect ( mergedSubFontDict instanceof Dict ) . toEqual ( true ) ;
376376
377- const mergedFontDictKeys = mergedFontDict . getKeys ( ) ;
378- const mergedSubFontDictKeys = mergedSubFontDict . getKeys ( ) ;
377+ const mergedFontDictKeys = [ ... mergedFontDict . getKeys ( ) ] ;
378+ const mergedSubFontDictKeys = [ ... mergedSubFontDict . getKeys ( ) ] ;
379379
380380 expect ( mergedFontDictKeys ) . toEqual ( [ "F1" ] ) ;
381381 expect ( mergedSubFontDictKeys ) . toEqual ( [ "F1" , "F2" , "F3" ] ) ;
382382
383- const mergedFontDictValues = mergedFontDict . getRawValues ( ) ;
384- const mergedSubFontDictValues = mergedSubFontDict . getRawValues ( ) ;
383+ const mergedFontDictValues = [ ... mergedFontDict . getRawValues ( ) ] ;
384+ const mergedSubFontDictValues = [ ... mergedSubFontDict . getRawValues ( ) ] ;
385385
386386 expect ( mergedFontDictValues ) . toEqual ( [ "Local font one" ] ) ;
387387 expect ( mergedSubFontDictValues ) . toEqual ( [
0 commit comments