import sut from '../src/compose' ; describe ( 'compose' , ( ) => { describe ( 'when provided with arbitrary amount of functions' , ( ) => { it ( 'should apply them in right-to-left order starting from the argument' , ( ) => { expect ( sut ( ( x ) => `${ x * 10 }` , ( x ) => x + 1 ) ( 5 ) ) . toBe ( '60' ) ; } ) ; } ) ; } ) ;