Skip to content
Myr

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 file

Take it

Added ContentLength pluginvisionmediabefore adoptiondea4ac9

lines 1–4why, one step back
1
2describe 'Express'3 before_each4 reset()

Logger -> CommonLoggervisionmediabefore adoptionf59dece

line 5why, one step back
5 use(require('express/plugins/common-logger').CommonLogger)

Added ContentLength pluginvisionmediabefore adoptiondea4ac9

lines 6–7why, one step back
6 end
7

Logger -> CommonLoggervisionmediabefore adoptionf59dece

line 8why, one step back
8 describe 'CommonLogger'

Added ContentLength pluginvisionmediabefore adoptiondea4ac9

lines 9–23why, one step back
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(){15 contentType('css')16 return 'body { background: #000; }'17 })18 get('/style.css')19 end20 end21 end22 end23end