tests: fix typos in test descriptions
Before adoption: this commit came in with the history the project adopted, so no landing records it.
closes #3129 closes #3130
authored by Vishvajit Pathak · committed by Douglas Christopher Wilson · parent 305f982 · Browse files · 6 files·+10 added−10 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+10 added−10 removed
- tests:+10 added−10 removed
Provenance
- Commit
bd47aeb- Tree
e3e2599- Author
Vishvajit Pathak <vishvajit.pathak@gmail.com>- Committer
Douglas Christopher Wilson <doug@somethingdoug.com>- Parent
305f982
6 files changed+10 added−10 removed
modified:test/app.options.js+1 added-1 removed
70 unmodified lines7172737475757677787936 unmodified lines70 unmodified lines .expect('Allow', 'GET,HEAD') .expect(200, 'GET,HEAD', done); })
describe('when error occurs in respone handler', function () { describe('when error occurs in response handler', function () { it('should pass error to callback', function (done) { var app = express(); var router = express.Router();
36 unmodified linesmodified:test/app.router.js+1 added-1 removed
755 unmodified lines756 .get('/users/tj/edit')757 .expect('editing tj (old)', cb);758 })759 760- it('should work inside literal paranthesis', function(done){760+ it('should work inside literal parenthesis', function(done){761 var app = express();762 763 app.get('/:user\\(:op\\)', function(req, res){764 res.end(req.params.op + 'ing ' + req.params.user);270 unmodified linesmodified:test/req.acceptsEncoding.js+2 added-2 removed
2 unmodified lines3456778910116 unmodified lines1819202122222324252610 unmodified lines2 unmodified lines , request = require('supertest');
describe('req', function(){ describe('.acceptsEncoding', function(){ it('should be true if encoding accpeted', function(done){ it('should be true if encoding accepted', function(done){ var app = express();
app.use(function(req, res){ req.acceptsEncoding('gzip').should.be.ok;6 unmodified lines .set('Accept-Encoding', ' gzip, deflate') .expect(200, done); })
it('should be false if encoding not accpeted', function(done){ it('should be false if encoding not accepted', function(done){ var app = express();
app.use(function(req, res){ req.acceptsEncoding('bogus').should.not.be.ok;10 unmodified linesmodified:test/req.acceptsEncodings.js+2 added-2 removed
2 unmodified lines3456778910116 unmodified lines1819202122222324252610 unmodified lines2 unmodified lines , request = require('supertest');
describe('req', function(){ describe('.acceptsEncodingss', function(){ it('should be true if encoding accpeted', function(done){ it('should be true if encoding accepted', function(done){ var app = express();
app.use(function(req, res){ req.acceptsEncodings('gzip').should.be.ok;6 unmodified lines .set('Accept-Encoding', ' gzip, deflate') .expect(200, done); })
it('should be false if encoding not accpeted', function(done){ it('should be false if encoding not accepted', function(done){ var app = express();
app.use(function(req, res){ req.acceptsEncodings('bogus').should.not.be.ok;10 unmodified linesmodified:test/req.acceptsLanguage.js+2 added-2 removed
2 unmodified lines3 , request = require('supertest');4 5 describe('req', function(){6 describe('.acceptsLanguage', function(){7- it('should be true if language accpeted', function(done){7+ it('should be true if language accepted', function(done){8 var app = express();9 10 app.use(function(req, res){11 req.acceptsLanguage('en-us').should.be.ok;6 unmodified lines18 .set('Accept-Language', 'en;q=.5, en-us')19 .expect(200, done);20 })21 22- it('should be false if language not accpeted', function(done){22+ it('should be false if language not accepted', function(done){23 var app = express();24 25 app.use(function(req, res){26 req.acceptsLanguage('es').should.not.be.ok;27 unmodified linesmodified:test/req.acceptsLanguages.js+2 added-2 removed
2 unmodified lines3 , request = require('supertest');4 5 describe('req', function(){6 describe('.acceptsLanguages', function(){7- it('should be true if language accpeted', function(done){7+ it('should be true if language accepted', function(done){8 var app = express();9 10 app.use(function(req, res){11 req.acceptsLanguages('en-us').should.be.ok;6 unmodified lines18 .set('Accept-Language', 'en;q=.5, en-us')19 .expect(200, done);20 })21 22- it('should be false if language not accpeted', function(done){22+ it('should be false if language not accepted', function(done){23 var app = express();24 25 app.use(function(req, res){26 req.acceptsLanguages('es').should.not.be.ok;27 unmodified lines