spec.plugins.common-logger.js
This file
Path
spec/spec.plugins.common-logger.js
23 lines · 505 bytes · JavaScript
Last changed by
Logger -> CommonLoggervisionmediabefore adoptionf59dece
History of this fileTake it
Added ContentLength pluginvisionmediabefore adoptiondea4ac9
lines 1–4why, one step back12describe 'Express'3 before_each4 reset()Logger -> CommonLoggervisionmediabefore adoptionf59dece
line 5why, one step back5 use(require('express/plugins/common-logger').CommonLogger)Added ContentLength pluginvisionmediabefore adoptiondea4ac9
lines 6–7why, one step back6 end7 Logger -> CommonLoggervisionmediabefore adoptionf59dece
line 8why, one step back8 describe 'CommonLogger'Added ContentLength pluginvisionmediabefore adoptiondea4ac9
lines 9–23why, one step back9 describe 'on'10 describe 'response'11 it 'should output in common log format'12 GLOBAL.stub('puts')13 GLOBAL.should.receive('puts')14 get('/style.css', function(){15 contentType('css')16 return 'body { background: #000; }'17 })18 get('/style.css')19 end20 end21 end22 end23end