import { union } from './union' ; describe ( 'union' , ( ) => { it ( 'should return the union between two array' , ( ) => { const array1 = [ 'foo' , 'bar' , 'toto' ] ; const array2 = [ 'toto' , 'titi' ] ; const resultExpected = [ 'foo' , 'bar' , 'toto' , 'toto' , 'titi' ] ; const result = union ( array1 , array2 ) ; expect ( result ) . toEqual ( resultExpected ) ; } ) ; } ) ;