spec.plugins.common-logger.js
This file
Path
spec/spec.plugins.common-logger.js
23 lines · 510 bytes · JavaScript
Last changed by
Fixed redirect helpers due to Request changevisionmediabefore adoption995cde7
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–14why, 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(){Fixed redirect helpers due to Request changevisionmediabefore adoption995cde7
line 15why, one step back15 this.contentType('css')Added ContentLength pluginvisionmediabefore adoptiondea4ac9
lines 16–23why, one step back16 return 'body { background: #000; }'17 })18 get('/style.css')19 end20 end21 end22 end23end