test: fix typos in test descriptions (#6535)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Noritaka Kobayashi · committed by GitHub · parent 9f4dbe3 · Browse files · 6 files·+24 added−24 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+24 added−24 removed
- tests:+24 added−24 removed
Provenance
- Commit
dfd1851- Tree
a9a52e2- Author
Noritaka Kobayashi <arukimedesu1166777@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
9f4dbe3
6 files changed+24 added−24 removed
modified:test/express.json.js+5 added-5 removed
537 unmodified lines538 539 this.app = app540 })541 542- it('should presist store', function (done) {542+ it('should persist store', function (done) {543 request(this.app)544 .post('/')545 .set('Content-Type', 'application/json')546 .send('{"user":"tobi"}')13 unmodified lines560 .expect('')561 .end(done)562 })563 564- it('should presist store when inflated', function (done) {564+ it('should persist store when inflated', function (done) {565 var test = request(this.app).post('/')566 test.set('Content-Encoding', 'gzip')567 test.set('Content-Type', 'application/json')568 test.write(Buffer.from('1f8b080000000000000bab56ca4bcc4d55b2527ab16e97522d00515be1cc0e000000', 'hex'))2 unmodified lines571 test.expect('{"name":"论"}')572 test.end(done)573 })574 575- it('should presist store when inflate error', function (done) {575+ it('should persist store when inflate error', function (done) {576 var test = request(this.app).post('/')577 test.set('Content-Encoding', 'gzip')578 test.set('Content-Type', 'application/json')579 test.write(Buffer.from('1f8b080000000000000bab56cc4d55b2527ab16e97522d00515be1cc0e000000', 'hex'))1 unmodified line581 test.expect('x-store-foo', 'bar')582 test.end(done)583 })584 585- it('should presist store when parse error', function (done) {585+ it('should persist store when parse error', function (done) {586 request(this.app)587 .post('/')588 .set('Content-Type', 'application/json')589 .send('{"user":')1 unmodified line591 .expect('x-store-foo', 'bar')592 .end(done)593 })594 595- it('should presist store when limit exceeded', function (done) {595+ it('should persist store when limit exceeded', function (done) {596 request(this.app)597 .post('/')598 .set('Content-Type', 'application/json')599 .send('{"user":"' + Buffer.alloc(1024 * 100, '.').toString() + '"}')155 unmodified linesmodified:test/express.raw.js+5 added-5 removed
366 unmodified lines367 368 this.app = app369 })370 371- it('should presist store', function (done) {371+ it('should persist store', function (done) {372 request(this.app)373 .post('/')374 .set('Content-Type', 'application/octet-stream')375 .send('the user is tobi')2 unmodified lines378 .expect({ buf: '746865207573657220697320746f6269' })379 .end(done)380 })381 382- it('should presist store when unmatched content-type', function (done) {382+ it('should persist store when unmatched content-type', function (done) {383 request(this.app)384 .post('/')385 .set('Content-Type', 'application/fizzbuzz')386 .send('buzz')1 unmodified line388 .expect('x-store-foo', 'bar')389 .end(done)390 })391 392- it('should presist store when inflated', function (done) {392+ it('should persist store when inflated', function (done) {393 var test = request(this.app).post('/')394 test.set('Content-Encoding', 'gzip')395 test.set('Content-Type', 'application/octet-stream')396 test.write(Buffer.from('1f8b080000000000000bcb4bcc4db57db16e170099a4bad608000000', 'hex'))2 unmodified lines399 test.expect({ buf: '6e616d653de8aeba' })400 test.end(done)401 })402 403- it('should presist store when inflate error', function (done) {403+ it('should persist store when inflate error', function (done) {404 var test = request(this.app).post('/')405 test.set('Content-Encoding', 'gzip')406 test.set('Content-Type', 'application/octet-stream')407 test.write(Buffer.from('1f8b080000000000000bcb4bcc4db57db16e170099a4bad6080000', 'hex'))1 unmodified line409 test.expect('x-store-foo', 'bar')410 test.end(done)411 })412 413- it('should presist store when limit exceeded', function (done) {413+ it('should persist store when limit exceeded', function (done) {414 request(this.app)415 .post('/')416 .set('Content-Type', 'application/octet-stream')417 .send('the user is ' + Buffer.alloc(1024 * 100, '.').toString())95 unmodified linesmodified:test/express.text.js+5 added-5 removed
395 unmodified lines396 397 this.app = app398 })399 400- it('should presist store', function (done) {400+ it('should persist store', function (done) {401 request(this.app)402 .post('/')403 .set('Content-Type', 'text/plain')404 .send('user is tobi')2 unmodified lines407 .expect('"user is tobi"')408 .end(done)409 })410 411- it('should presist store when unmatched content-type', function (done) {411+ it('should persist store when unmatched content-type', function (done) {412 request(this.app)413 .post('/')414 .set('Content-Type', 'application/fizzbuzz')415 .send('buzz')1 unmodified line417 .expect('x-store-foo', 'bar')418 .end(done)419 })420 421- it('should presist store when inflated', function (done) {421+ it('should persist store when inflated', function (done) {422 var test = request(this.app).post('/')423 test.set('Content-Encoding', 'gzip')424 test.set('Content-Type', 'text/plain')425 test.write(Buffer.from('1f8b080000000000000bcb4bcc4d55c82c5678b16e170072b3e0200b000000', 'hex'))2 unmodified lines428 test.expect('"name is 论"')429 test.end(done)430 })431 432- it('should presist store when inflate error', function (done) {432+ it('should persist store when inflate error', function (done) {433 var test = request(this.app).post('/')434 test.set('Content-Encoding', 'gzip')435 test.set('Content-Type', 'text/plain')436 test.write(Buffer.from('1f8b080000000000000bcb4bcc4d55c82c5678b16e170072b3e0200b0000', 'hex'))1 unmodified line438 test.expect('x-store-foo', 'bar')439 test.end(done)440 })441 442- it('should presist store when limit exceeded', function (done) {442+ it('should persist store when limit exceeded', function (done) {443 request(this.app)444 .post('/')445 .set('Content-Type', 'text/plain')446 .send('user is ' + Buffer.alloc(1024 * 100, '.').toString())120 unmodified linesmodified:test/express.urlencoded.js+5 added-5 removed
640 unmodified lines641 642 this.app = app643 })644 645- it('should presist store', function (done) {645+ it('should persist store', function (done) {646 request(this.app)647 .post('/')648 .set('Content-Type', 'application/x-www-form-urlencoded')649 .send('user=tobi')2 unmodified lines652 .expect('{"user":"tobi"}')653 .end(done)654 })655 656- it('should presist store when unmatched content-type', function (done) {656+ it('should persist store when unmatched content-type', function (done) {657 request(this.app)658 .post('/')659 .set('Content-Type', 'application/fizzbuzz')660 .send('buzz')1 unmodified line662 .expect('x-store-foo', 'bar')663 .end(done)664 })665 666- it('should presist store when inflated', function (done) {666+ it('should persist store when inflated', function (done) {667 var test = request(this.app).post('/')668 test.set('Content-Encoding', 'gzip')669 test.set('Content-Type', 'application/x-www-form-urlencoded')670 test.write(Buffer.from('1f8b080000000000000bcb4bcc4db57db16e170099a4bad608000000', 'hex'))2 unmodified lines673 test.expect('{"name":"论"}')674 test.end(done)675 })676 677- it('should presist store when inflate error', function (done) {677+ it('should persist store when inflate error', function (done) {678 var test = request(this.app).post('/')679 test.set('Content-Encoding', 'gzip')680 test.set('Content-Type', 'application/x-www-form-urlencoded')681 test.write(Buffer.from('1f8b080000000000000bcb4bcc4db57db16e170099a4bad6080000', 'hex'))1 unmodified line683 test.expect('x-store-foo', 'bar')684 test.end(done)685 })686 687- it('should presist store when limit exceeded', function (done) {687+ it('should persist store when limit exceeded', function (done) {688 request(this.app)689 .post('/')690 .set('Content-Type', 'application/x-www-form-urlencoded')691 .send('user=' + Buffer.alloc(1024 * 100, '.').toString())136 unmodified linesmodified:test/res.download.js+2 added-2 removed
86 unmodified lines87 .expect(200, cb);88 })89 90 describe('async local storage', function () {91- it('should presist store', function (done) {91+ it('should persist store', function (done) {92 var app = express()93 var cb = after(2, done)94 var store = { foo: 'bar' }95 19 unmodified lines115 .expect('Content-Disposition', 'attachment; filename="name.txt"')116 .expect(200, 'tobi', cb)117 })118 119- it('should presist store on error', function (done) {119+ it('should persist store on error', function (done) {120 var app = express()121 var store = { foo: 'bar' }122 123 app.use(function (req, res, next) {363 unmodified linesmodified:test/res.sendFile.js+2 added-2 removed
275 unmodified lines276 .expect(200, 'got 404 error', done)277 })278 279 describe('async local storage', function () {280- it('should presist store', function (done) {280+ it('should persist store', function (done) {281 var app = express()282 var cb = after(2, done)283 var store = { foo: 'bar' }284 18 unmodified lines303 .expect('Content-Type', 'text/plain; charset=utf-8')304 .expect(200, 'tobi', cb)305 })306 307- it('should presist store on error', function (done) {307+ it('should persist store on error', function (done) {308 var app = express()309 var store = { foo: 'bar' }310 311 app.use(function (req, res, next) {601 unmodified lines