mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
test: fix typos in test descriptions (#6535)
This commit is contained in:
parent
9f4dbe3a13
commit
dfd1851245
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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' }
|
||||
|
||||
|
|
|
|||
|
|
@ -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' }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user