tests: fix typos

closes #4564
This commit is contained in:
Hussein Mohamed
2021-04-11 22:49:52 +02:00
committed by Douglas Christopher Wilson
parent 135a05c524
commit 52e9bd67b7
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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+$/)