import { removeItemFromArray } from "../removeItemFromArray" ; test ( "removeItemFromArray" , ( ) => { const obj = { } ; expect ( removeItemFromArray ( [ 1 , 2 , 3 ] , 2 ) ) . toEqual ( [ 1 , 3 ] ) ; expect ( removeItemFromArray ( [ 1 , obj , 3 ] , obj ) ) . toEqual ( [ 1 , 3 ] ) ; } ) ;