spec.static.js
This file
Path
spec/spec.static.js
18 lines · 431 bytes · JavaScript
Last changed by
Added static file support [#17]visionmediabefore adoption542a90a
History of this fileTake it
123456789101112131415161718
describe 'Express' describe 'StaticFile' before StaticFile = require('express/static').File end describe '#init' it 'should accept and assign #path' (new StaticFile('/foo/bar')).path.should.eql '/foo/bar' end it 'should throw an InvalidPathError when .. is found' -{ new StaticFile('/../foobar') }.should.throw_error(/InvalidPathError/) end end endend