Skip to content
Myr

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

6 files+24 added−24 removed

modified:test/express.json.js+5 added-5 removed
537 unmodified lines
538539 this.app = app540 })541542 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 lines
560 .expect('')561 .end(done)562 })563564 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 lines
571 test.expect('{"name":"论"}')572 test.end(done)573 })574575 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 line
581 test.expect('x-store-foo', 'bar')582 test.end(done)583 })584585 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 line
591 .expect('x-store-foo', 'bar')592 .end(done)593 })594595 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 lines
modified:test/express.raw.js+5 added-5 removed
366 unmodified lines
367368 this.app = app369 })370371 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 lines
378 .expect({ buf: '746865207573657220697320746f6269' })379 .end(done)380 })381382 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 line
388 .expect('x-store-foo', 'bar')389 .end(done)390 })391392 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 lines
399 test.expect({ buf: '6e616d653de8aeba' })400 test.end(done)401 })402403 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 line
409 test.expect('x-store-foo', 'bar')410 test.end(done)411 })412413 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 lines
modified:test/express.text.js+5 added-5 removed
395 unmodified lines
396397 this.app = app398 })399400 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 lines
407 .expect('"user is tobi"')408 .end(done)409 })410411 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 line
417 .expect('x-store-foo', 'bar')418 .end(done)419 })420421 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 lines
428 test.expect('"name is 论"')429 test.end(done)430 })431432 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 line
438 test.expect('x-store-foo', 'bar')439 test.end(done)440 })441442 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 lines
modified:test/express.urlencoded.js+5 added-5 removed
640 unmodified lines
641642 this.app = app643 })644645 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 lines
652 .expect('{"user":"tobi"}')653 .end(done)654 })655656 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 line
662 .expect('x-store-foo', 'bar')663 .end(done)664 })665666 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 lines
673 test.expect('{"name":"论"}')674 test.end(done)675 })676677 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 line
683 test.expect('x-store-foo', 'bar')684 test.end(done)685 })686687 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 lines
modified:test/res.download.js+2 added-2 removed
86 unmodified lines
87 .expect(200, cb);88 })8990 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 lines
115 .expect('Content-Disposition', 'attachment; filename="name.txt"')116 .expect(200, 'tobi', cb)117 })118119 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' }122123 app.use(function (req, res, next) {
363 unmodified lines
modified:test/res.sendFile.js+2 added-2 removed
275 unmodified lines
276 .expect(200, 'got 404 error', done)277 })278279 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 lines
303 .expect('Content-Type', 'text/plain; charset=utf-8')304 .expect(200, 'tobi', cb)305 })306307 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' }310311 app.use(function (req, res, next) {
601 unmodified lines