mirror of
https://github.com/zebrajr/express.git
synced 2026-01-15 12:15:27 +00:00
committed by
Douglas Christopher Wilson
parent
135a05c524
commit
52e9bd67b7
@@ -185,7 +185,7 @@ describe('app', function(){
|
||||
});
|
||||
|
||||
app.param('user', function(req, res, next, user) {
|
||||
next(new Error('invalid invokation'));
|
||||
next(new Error('invalid invocation'))
|
||||
});
|
||||
|
||||
app.post('/:user', function(req, res, next) {
|
||||
|
||||
@@ -429,7 +429,7 @@ describe('express.static()', function () {
|
||||
|
||||
describe('lastModified', function () {
|
||||
describe('when false', function () {
|
||||
it('should not include Last-Modifed', function (done) {
|
||||
it('should not include Last-Modified', function (done) {
|
||||
request(createApp(fixtures, { 'lastModified': false }))
|
||||
.get('/nums.txt')
|
||||
.expect(utils.shouldNotHaveHeader('Last-Modified'))
|
||||
@@ -438,7 +438,7 @@ describe('express.static()', function () {
|
||||
})
|
||||
|
||||
describe('when true', function () {
|
||||
it('should include Last-Modifed', function (done) {
|
||||
it('should include Last-Modified', function (done) {
|
||||
request(createApp(fixtures, { 'lastModified': true }))
|
||||
.get('/nums.txt')
|
||||
.expect('Last-Modified', /^\w{3}, \d+ \w+ \d+ \d+:\d+:\d+ \w+$/)
|
||||
|
||||
Reference in New Issue
Block a user