test: fix typos in test descriptions (#6535)

This commit is contained in:
Noritaka Kobayashi 2025-05-27 17:36:50 +09:00 committed by GitHub
parent 9f4dbe3a13
commit dfd1851245
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 24 additions and 24 deletions

View File

@ -539,7 +539,7 @@ describe('express.json()', function () {
this.app = app this.app = app
}) })
it('should presist store', function (done) { it('should persist store', function (done) {
request(this.app) request(this.app)
.post('/') .post('/')
.set('Content-Type', 'application/json') .set('Content-Type', 'application/json')
@ -561,7 +561,7 @@ describe('express.json()', function () {
.end(done) .end(done)
}) })
it('should presist store when inflated', function (done) { it('should persist store when inflated', function (done) {
var test = request(this.app).post('/') var test = request(this.app).post('/')
test.set('Content-Encoding', 'gzip') test.set('Content-Encoding', 'gzip')
test.set('Content-Type', 'application/json') test.set('Content-Type', 'application/json')
@ -572,7 +572,7 @@ describe('express.json()', function () {
test.end(done) 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('/') var test = request(this.app).post('/')
test.set('Content-Encoding', 'gzip') test.set('Content-Encoding', 'gzip')
test.set('Content-Type', 'application/json') test.set('Content-Type', 'application/json')
@ -582,7 +582,7 @@ describe('express.json()', function () {
test.end(done) test.end(done)
}) })
it('should presist store when parse error', function (done) { it('should persist store when parse error', function (done) {
request(this.app) request(this.app)
.post('/') .post('/')
.set('Content-Type', 'application/json') .set('Content-Type', 'application/json')
@ -592,7 +592,7 @@ describe('express.json()', function () {
.end(done) .end(done)
}) })
it('should presist store when limit exceeded', function (done) { it('should persist store when limit exceeded', function (done) {
request(this.app) request(this.app)
.post('/') .post('/')
.set('Content-Type', 'application/json') .set('Content-Type', 'application/json')

View File

@ -368,7 +368,7 @@ describe('express.raw()', function () {
this.app = app this.app = app
}) })
it('should presist store', function (done) { it('should persist store', function (done) {
request(this.app) request(this.app)
.post('/') .post('/')
.set('Content-Type', 'application/octet-stream') .set('Content-Type', 'application/octet-stream')
@ -379,7 +379,7 @@ describe('express.raw()', function () {
.end(done) .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) request(this.app)
.post('/') .post('/')
.set('Content-Type', 'application/fizzbuzz') .set('Content-Type', 'application/fizzbuzz')
@ -389,7 +389,7 @@ describe('express.raw()', function () {
.end(done) .end(done)
}) })
it('should presist store when inflated', function (done) { it('should persist store when inflated', function (done) {
var test = request(this.app).post('/') var test = request(this.app).post('/')
test.set('Content-Encoding', 'gzip') test.set('Content-Encoding', 'gzip')
test.set('Content-Type', 'application/octet-stream') test.set('Content-Type', 'application/octet-stream')
@ -400,7 +400,7 @@ describe('express.raw()', function () {
test.end(done) 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('/') var test = request(this.app).post('/')
test.set('Content-Encoding', 'gzip') test.set('Content-Encoding', 'gzip')
test.set('Content-Type', 'application/octet-stream') test.set('Content-Type', 'application/octet-stream')
@ -410,7 +410,7 @@ describe('express.raw()', function () {
test.end(done) test.end(done)
}) })
it('should presist store when limit exceeded', function (done) { it('should persist store when limit exceeded', function (done) {
request(this.app) request(this.app)
.post('/') .post('/')
.set('Content-Type', 'application/octet-stream') .set('Content-Type', 'application/octet-stream')

View File

@ -397,7 +397,7 @@ describe('express.text()', function () {
this.app = app this.app = app
}) })
it('should presist store', function (done) { it('should persist store', function (done) {
request(this.app) request(this.app)
.post('/') .post('/')
.set('Content-Type', 'text/plain') .set('Content-Type', 'text/plain')
@ -408,7 +408,7 @@ describe('express.text()', function () {
.end(done) .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) request(this.app)
.post('/') .post('/')
.set('Content-Type', 'application/fizzbuzz') .set('Content-Type', 'application/fizzbuzz')
@ -418,7 +418,7 @@ describe('express.text()', function () {
.end(done) .end(done)
}) })
it('should presist store when inflated', function (done) { it('should persist store when inflated', function (done) {
var test = request(this.app).post('/') var test = request(this.app).post('/')
test.set('Content-Encoding', 'gzip') test.set('Content-Encoding', 'gzip')
test.set('Content-Type', 'text/plain') test.set('Content-Type', 'text/plain')
@ -429,7 +429,7 @@ describe('express.text()', function () {
test.end(done) 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('/') var test = request(this.app).post('/')
test.set('Content-Encoding', 'gzip') test.set('Content-Encoding', 'gzip')
test.set('Content-Type', 'text/plain') test.set('Content-Type', 'text/plain')
@ -439,7 +439,7 @@ describe('express.text()', function () {
test.end(done) test.end(done)
}) })
it('should presist store when limit exceeded', function (done) { it('should persist store when limit exceeded', function (done) {
request(this.app) request(this.app)
.post('/') .post('/')
.set('Content-Type', 'text/plain') .set('Content-Type', 'text/plain')

View File

@ -642,7 +642,7 @@ describe('express.urlencoded()', function () {
this.app = app this.app = app
}) })
it('should presist store', function (done) { it('should persist store', function (done) {
request(this.app) request(this.app)
.post('/') .post('/')
.set('Content-Type', 'application/x-www-form-urlencoded') .set('Content-Type', 'application/x-www-form-urlencoded')
@ -653,7 +653,7 @@ describe('express.urlencoded()', function () {
.end(done) .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) request(this.app)
.post('/') .post('/')
.set('Content-Type', 'application/fizzbuzz') .set('Content-Type', 'application/fizzbuzz')
@ -663,7 +663,7 @@ describe('express.urlencoded()', function () {
.end(done) .end(done)
}) })
it('should presist store when inflated', function (done) { it('should persist store when inflated', function (done) {
var test = request(this.app).post('/') var test = request(this.app).post('/')
test.set('Content-Encoding', 'gzip') test.set('Content-Encoding', 'gzip')
test.set('Content-Type', 'application/x-www-form-urlencoded') test.set('Content-Type', 'application/x-www-form-urlencoded')
@ -674,7 +674,7 @@ describe('express.urlencoded()', function () {
test.end(done) 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('/') var test = request(this.app).post('/')
test.set('Content-Encoding', 'gzip') test.set('Content-Encoding', 'gzip')
test.set('Content-Type', 'application/x-www-form-urlencoded') test.set('Content-Type', 'application/x-www-form-urlencoded')
@ -684,7 +684,7 @@ describe('express.urlencoded()', function () {
test.end(done) test.end(done)
}) })
it('should presist store when limit exceeded', function (done) { it('should persist store when limit exceeded', function (done) {
request(this.app) request(this.app)
.post('/') .post('/')
.set('Content-Type', 'application/x-www-form-urlencoded') .set('Content-Type', 'application/x-www-form-urlencoded')

View File

@ -88,7 +88,7 @@ describe('res', function(){
}) })
describe('async local storage', function () { describe('async local storage', function () {
it('should presist store', function (done) { it('should persist store', function (done) {
var app = express() var app = express()
var cb = after(2, done) var cb = after(2, done)
var store = { foo: 'bar' } var store = { foo: 'bar' }
@ -116,7 +116,7 @@ describe('res', function(){
.expect(200, 'tobi', cb) .expect(200, 'tobi', cb)
}) })
it('should presist store on error', function (done) { it('should persist store on error', function (done) {
var app = express() var app = express()
var store = { foo: 'bar' } var store = { foo: 'bar' }

View File

@ -277,7 +277,7 @@ describe('res', function(){
}) })
describe('async local storage', function () { describe('async local storage', function () {
it('should presist store', function (done) { it('should persist store', function (done) {
var app = express() var app = express()
var cb = after(2, done) var cb = after(2, done)
var store = { foo: 'bar' } var store = { foo: 'bar' }
@ -304,7 +304,7 @@ describe('res', function(){
.expect(200, 'tobi', cb) .expect(200, 'tobi', cb)
}) })
it('should presist store on error', function (done) { it('should persist store on error', function (done) {
var app = express() var app = express()
var store = { foo: 'bar' } var store = { foo: 'bar' }