tests: fix typos in descriptions
Before adoption: this commit came in with the history the project adopted, so no landing records it.
closes #3875
authored by 김정환 · committed by Douglas Christopher Wilson · parent 6f12eee · Browse files · 6 files·+9 added−9 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+9 added−9 removed
- tests:+9 added−9 removed
Provenance
- Commit
b9b1b19- Tree
479b150- Author
김정환 <jh.kim@woowahan.com>- Committer
Douglas Christopher Wilson <doug@somethingdoug.com>- Parent
6f12eee
6 files changed+9 added−9 removed
modified:test/app.router.js+1 added-1 removed
565 unmodified lines566 .get('/user/tobi.json')567 .expect('/user/tobi.json', done)568 })569 570- it('should decore the capture', function (done) {570+ it('should decode the capture', function (done) {571 var app = express()572 573 app.get('*', function (req, res) {574 res.end(req.params[0])504 unmodified linesmodified:test/req.acceptsCharset.js+2 added-2 removed
16 unmodified lines17181920212221222324252623 unmodified lines16 unmodified lines .expect('yes', done); }) })
describe('when Accept-Charset is not present', function(){ it('should return true when present', function(done){ describe('when Accept-Charset is present', function () { it('should return true', function (done) { var app = express();
app.use(function(req, res, next){ res.end(req.acceptsCharset('utf-8') ? 'yes' : 'no');23 unmodified linesmodified:test/req.acceptsCharsets.js+2 added-2 removed
16 unmodified lines17181920212221222324252623 unmodified lines16 unmodified lines .expect('yes', done); }) })
describe('when Accept-Charset is not present', function(){ it('should return true when present', function(done){ describe('when Accept-Charset is present', function () { it('should return true', function (done) { var app = express();
app.use(function(req, res, next){ res.end(req.acceptsCharsets('utf-8') ? 'yes' : 'no');23 unmodified linesmodified:test/req.acceptsEncodings.js+1 added-1 removed
12345667891026 unmodified lines
var express = require('../') , request = require('supertest');
describe('req', function(){ describe('.acceptsEncodingss', function(){ describe('.acceptsEncodings', function () { it('should be true if encoding accepted', function(done){ var app = express();
app.use(function(req, res){26 unmodified linesmodified:test/req.query.js+1 added-1 removed
68 unmodified lines69 .expect(200, '{}', done);70 });71 });72 73- describe('when "query parser" disabled', function () {73+ describe('when "query parser" enabled', function () {74 it('should not parse complex keys', function (done) {75 var app = createApp(true);76 77 request(app)43 unmodified linesmodified:test/res.download.js+2 added-2 removed
108 unmodified lines109 .end(done)110 })111 112 describe('when options.headers contains Content-Disposition', function () {113- it('should should be ignored', function (done) {113+ it('should be ignored', function (done) {114 var app = express()115 116 app.use(function (req, res) {117 res.download('test/fixtures/user.html', 'document', {11 unmodified lines129 .expect('Content-Disposition', 'attachment; filename="document"')130 .end(done)131 })132 133- it('should should be ignored case-insensitively', function (done) {133+ it('should be ignored case-insensitively', function (done) {134 var app = express()135 136 app.use(function (req, res) {137 res.download('test/fixtures/user.html', 'document', {66 unmodified lines