@@ -3,7 +3,6 @@ import type { Event, Mechanism, StackFrame } from '../../src/types-hoist';
3
3
import {
4
4
addContextToFrame ,
5
5
addExceptionMechanism ,
6
- arrayify ,
7
6
checkOrSetAlreadyCaught ,
8
7
getEventDescription ,
9
8
uuid4 ,
@@ -363,27 +362,3 @@ describe('uuid4 generation', () => {
363
362
}
364
363
} ) ;
365
364
} ) ;
366
-
367
- describe ( 'arrayify()' , ( ) => {
368
- it ( 'returns arrays untouched' , ( ) => {
369
- // eslint-disable-next-line deprecation/deprecation
370
- expect ( arrayify ( [ ] ) ) . toEqual ( [ ] ) ;
371
- // eslint-disable-next-line deprecation/deprecation
372
- expect ( arrayify ( [ 'dogs' , 'are' , 'great' ] ) ) . toEqual ( [ 'dogs' , 'are' , 'great' ] ) ;
373
- } ) ;
374
-
375
- it ( 'wraps non-arrays with an array' , ( ) => {
376
- // eslint-disable-next-line deprecation/deprecation
377
- expect ( arrayify ( 1231 ) ) . toEqual ( [ 1231 ] ) ;
378
- // eslint-disable-next-line deprecation/deprecation
379
- expect ( arrayify ( 'dogs are great' ) ) . toEqual ( [ 'dogs are great' ] ) ;
380
- // eslint-disable-next-line deprecation/deprecation
381
- expect ( arrayify ( true ) ) . toEqual ( [ true ] ) ;
382
- // eslint-disable-next-line deprecation/deprecation
383
- expect ( arrayify ( { } ) ) . toEqual ( [ { } ] ) ;
384
- // eslint-disable-next-line deprecation/deprecation
385
- expect ( arrayify ( null ) ) . toEqual ( [ null ] ) ;
386
- // eslint-disable-next-line deprecation/deprecation
387
- expect ( arrayify ( undefined ) ) . toEqual ( [ undefined ] ) ;
388
- } ) ;
389
- } ) ;
0 commit comments