From 52e9bd67b76f2328afd75edef1d1b650f8954961 Mon Sep 17 00:00:00 2001 From: Hussein Mohamed Date: Sun, 11 Apr 2021 22:49:52 +0200 Subject: [PATCH] tests: fix typos closes #4564 --- test/app.param.js | 2 +- test/express.static.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/app.param.js b/test/app.param.js index 87855677..577b0071 100644 --- a/test/app.param.js +++ b/test/app.param.js @@ -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) { diff --git a/test/express.static.js b/test/express.static.js index 485ee4c0..56d3657b 100644 --- a/test/express.static.js +++ b/test/express.static.js @@ -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+$/)