From d051c65b9733c6fe234230bba94d3ac6f3ac687e Mon Sep 17 00:00:00 2001 From: Noritaka Kobayashi Date: Tue, 27 May 2025 01:03:40 +0900 Subject: [PATCH] chore: fix typos in test --- test/express.json.js | 10 +++++----- test/express.raw.js | 10 +++++----- test/express.text.js | 10 +++++----- test/express.urlencoded.js | 10 +++++----- test/res.download.js | 4 ++-- test/res.sendFile.js | 4 ++-- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/test/express.json.js b/test/express.json.js index 6b91734ed3b..6f7768afc23 100644 --- a/test/express.json.js +++ b/test/express.json.js @@ -539,7 +539,7 @@ describe('express.json()', function () { this.app = app }) - it('should presist store', function (done) { + it('should persist store', function (done) { request(this.app) .post('/') .set('Content-Type', 'application/json') @@ -561,7 +561,7 @@ describe('express.json()', function () { .end(done) }) - it('should presist store when inflated', function (done) { + it('should persist store when inflated', function (done) { var test = request(this.app).post('/') test.set('Content-Encoding', 'gzip') test.set('Content-Type', 'application/json') @@ -572,7 +572,7 @@ describe('express.json()', function () { test.end(done) }) - it('should presist store when inflate error', function (done) { + it('should persist store when inflate error', function (done) { var test = request(this.app).post('/') test.set('Content-Encoding', 'gzip') test.set('Content-Type', 'application/json') @@ -582,7 +582,7 @@ describe('express.json()', function () { test.end(done) }) - it('should presist store when parse error', function (done) { + it('should persist store when parse error', function (done) { request(this.app) .post('/') .set('Content-Type', 'application/json') @@ -592,7 +592,7 @@ describe('express.json()', function () { .end(done) }) - it('should presist store when limit exceeded', function (done) { + it('should persist store when limit exceeded', function (done) { request(this.app) .post('/') .set('Content-Type', 'application/json') diff --git a/test/express.raw.js b/test/express.raw.js index 362fccb1e38..aface9093d5 100644 --- a/test/express.raw.js +++ b/test/express.raw.js @@ -368,7 +368,7 @@ describe('express.raw()', function () { this.app = app }) - it('should presist store', function (done) { + it('should persist store', function (done) { request(this.app) .post('/') .set('Content-Type', 'application/octet-stream') @@ -379,7 +379,7 @@ describe('express.raw()', function () { .end(done) }) - it('should presist store when unmatched content-type', function (done) { + it('should persist store when unmatched content-type', function (done) { request(this.app) .post('/') .set('Content-Type', 'application/fizzbuzz') @@ -389,7 +389,7 @@ describe('express.raw()', function () { .end(done) }) - it('should presist store when inflated', function (done) { + it('should persist store when inflated', function (done) { var test = request(this.app).post('/') test.set('Content-Encoding', 'gzip') test.set('Content-Type', 'application/octet-stream') @@ -400,7 +400,7 @@ describe('express.raw()', function () { test.end(done) }) - it('should presist store when inflate error', function (done) { + it('should persist store when inflate error', function (done) { var test = request(this.app).post('/') test.set('Content-Encoding', 'gzip') test.set('Content-Type', 'application/octet-stream') @@ -410,7 +410,7 @@ describe('express.raw()', function () { test.end(done) }) - it('should presist store when limit exceeded', function (done) { + it('should persist store when limit exceeded', function (done) { request(this.app) .post('/') .set('Content-Type', 'application/octet-stream') diff --git a/test/express.text.js b/test/express.text.js index 1d22929e3b2..2ce6052a07b 100644 --- a/test/express.text.js +++ b/test/express.text.js @@ -397,7 +397,7 @@ describe('express.text()', function () { this.app = app }) - it('should presist store', function (done) { + it('should persist store', function (done) { request(this.app) .post('/') .set('Content-Type', 'text/plain') @@ -408,7 +408,7 @@ describe('express.text()', function () { .end(done) }) - it('should presist store when unmatched content-type', function (done) { + it('should persist store when unmatched content-type', function (done) { request(this.app) .post('/') .set('Content-Type', 'application/fizzbuzz') @@ -418,7 +418,7 @@ describe('express.text()', function () { .end(done) }) - it('should presist store when inflated', function (done) { + it('should persist store when inflated', function (done) { var test = request(this.app).post('/') test.set('Content-Encoding', 'gzip') test.set('Content-Type', 'text/plain') @@ -429,7 +429,7 @@ describe('express.text()', function () { test.end(done) }) - it('should presist store when inflate error', function (done) { + it('should persist store when inflate error', function (done) { var test = request(this.app).post('/') test.set('Content-Encoding', 'gzip') test.set('Content-Type', 'text/plain') @@ -439,7 +439,7 @@ describe('express.text()', function () { test.end(done) }) - it('should presist store when limit exceeded', function (done) { + it('should persist store when limit exceeded', function (done) { request(this.app) .post('/') .set('Content-Type', 'text/plain') diff --git a/test/express.urlencoded.js b/test/express.urlencoded.js index b2df949f9f3..2f32f9fed1b 100644 --- a/test/express.urlencoded.js +++ b/test/express.urlencoded.js @@ -642,7 +642,7 @@ describe('express.urlencoded()', function () { this.app = app }) - it('should presist store', function (done) { + it('should persist store', function (done) { request(this.app) .post('/') .set('Content-Type', 'application/x-www-form-urlencoded') @@ -653,7 +653,7 @@ describe('express.urlencoded()', function () { .end(done) }) - it('should presist store when unmatched content-type', function (done) { + it('should persist store when unmatched content-type', function (done) { request(this.app) .post('/') .set('Content-Type', 'application/fizzbuzz') @@ -663,7 +663,7 @@ describe('express.urlencoded()', function () { .end(done) }) - it('should presist store when inflated', function (done) { + it('should persist store when inflated', function (done) { var test = request(this.app).post('/') test.set('Content-Encoding', 'gzip') test.set('Content-Type', 'application/x-www-form-urlencoded') @@ -674,7 +674,7 @@ describe('express.urlencoded()', function () { test.end(done) }) - it('should presist store when inflate error', function (done) { + it('should persist store when inflate error', function (done) { var test = request(this.app).post('/') test.set('Content-Encoding', 'gzip') test.set('Content-Type', 'application/x-www-form-urlencoded') @@ -684,7 +684,7 @@ describe('express.urlencoded()', function () { test.end(done) }) - it('should presist store when limit exceeded', function (done) { + it('should persist store when limit exceeded', function (done) { request(this.app) .post('/') .set('Content-Type', 'application/x-www-form-urlencoded') diff --git a/test/res.download.js b/test/res.download.js index 1bd7663c549..db42662e2b2 100644 --- a/test/res.download.js +++ b/test/res.download.js @@ -88,7 +88,7 @@ describe('res', function(){ }) describe('async local storage', function () { - it('should presist store', function (done) { + it('should persist store', function (done) { var app = express() var cb = after(2, done) var store = { foo: 'bar' } @@ -116,7 +116,7 @@ describe('res', function(){ .expect(200, 'tobi', cb) }) - it('should presist store on error', function (done) { + it('should persist store on error', function (done) { var app = express() var store = { foo: 'bar' } diff --git a/test/res.sendFile.js b/test/res.sendFile.js index 63ad5558b57..9b0cd83cca3 100644 --- a/test/res.sendFile.js +++ b/test/res.sendFile.js @@ -277,7 +277,7 @@ describe('res', function(){ }) describe('async local storage', function () { - it('should presist store', function (done) { + it('should persist store', function (done) { var app = express() var cb = after(2, done) var store = { foo: 'bar' } @@ -304,7 +304,7 @@ describe('res', function(){ .expect(200, 'tobi', cb) }) - it('should presist store on error', function (done) { + it('should persist store on error', function (done) { var app = express() var store = { foo: 'bar' }