import { filterEmptyValues } from './utils' ; describe ( 'filterEmptyValues' , ( ) => { it ( 'filters out all empty strings from the array' , ( ) => { const values = [ '' , 'a' , '' , 'b' , '' , 'c' , '' ] ; expect ( filterEmptyValues ( values ) ) . toEqual ( [ 'a' , 'b' , 'c' ] ) ; } ) ; } ) ;