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
The walk stopped after 200 commits: lines older than 521fb0b point at it.
Pre-loading view engine modules to prevent overhead of module loadingvisionmediabefore adoption521fb0b
lines 1–14why, one step back12describe 'Express'3 before_each4 reset()5 use(require('express/plugins/common-logger').CommonLogger)6 end7 8 describe 'CommonLogger'9 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')Pre-loading view engine modules to prevent overhead of module loadingvisionmediabefore adoption521fb0b
lines 16–23why, one step back16 return 'body { background: #000; }'17 })18 get('/style.css')19 end20 end21 end22 end23end