Skip to content
Myr

tests: fix typos

Before adoption: this commit came in with the history the project adopted, so no landing records it.

closes #4564

authored by Hussein Mohamed · committed by Douglas Christopher Wilson · parent 135a05c · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • tests:+3 added−3 removed

2 files+3 added−3 removed

modified:test/app.param.js+1 added-1 removed
183 unmodified lines
184 next();185 });186187 app.param('user', function(req, res, next, user) {188 next(new Error('invalid invokation'));188 next(new Error('invalid invocation'))189 });190191 app.post('/:user', function(req, res, next) {192 res.send(req.params.user);
174 unmodified lines
modified:test/express.static.js+2 added-2 removed
427 unmodified lines
428 })429430 describe('lastModified', function () {431 describe('when false', function () {432 it('should not include Last-Modifed', function (done) {432 it('should not include Last-Modified', function (done) {433 request(createApp(fixtures, { 'lastModified': false }))434 .get('/nums.txt')435 .expect(utils.shouldNotHaveHeader('Last-Modified'))436 .expect(200, '123456789', done)437 })438 })439440 describe('when true', function () {441 it('should include Last-Modifed', function (done) {441 it('should include Last-Modified', function (done) {442 request(createApp(fixtures, { 'lastModified': true }))443 .get('/nums.txt')444 .expect('Last-Modified', /^\w{3}, \d+ \w+ \d+ \d+:\d+:\d+ \w+$/)445 .expect(200, '123456789', done)
368 unmodified lines