const { normalizeMethod } = require ( './method' ) ; describe ( 'normalizeMethod' , ( ) => { const method = 'GET' ; let normalizedMethod ; beforeEach ( ( ) => { normalizedMethod = normalizeMethod ( method ) ; } ) ; it ( 'should lowercase the method' , ( ) => { expect ( normalizedMethod ) . toEqual ( 'get' ) ; } ) ; } ) ;