import sut from '../src/pipe' ; describe ( 'pipe' , ( ) => { describe ( 'when provided with arbitrary amount of functions' , ( ) => { it ( 'should apply them in left-to-right order starting from the argument' , ( ) => { expect ( sut ( ( x ) => `${ x * 10 }` , ( s ) => s . split ( '' ) ) ( 5 ) ) . toStrictEqual ( [ '5' , '0' ] ) ; } ) ; } ) ; } ) ;