Skip to content
Myr

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

6 files+10 added−10 removed

modified:test/app.options.js+1 added-1 removed
modified:test/app.router.js+1 added-1 removed
755 unmodified lines
756 .get('/users/tj/edit')757 .expect('editing tj (old)', cb);758 })759760 it('should work inside literal paranthesis', function(done){760 it('should work inside literal parenthesis', function(done){761 var app = express();762763 app.get('/:user\\(:op\\)', function(req, res){764 res.end(req.params.op + 'ing ' + req.params.user);
270 unmodified lines
modified:test/req.acceptsEncoding.js+2 added-2 removed
modified:test/req.acceptsEncodings.js+2 added-2 removed
modified:test/req.acceptsLanguage.js+2 added-2 removed
2 unmodified lines
3 , request = require('supertest');45describe('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();910 app.use(function(req, res){11 req.acceptsLanguage('en-us').should.be.ok;
6 unmodified lines
18 .set('Accept-Language', 'en;q=.5, en-us')19 .expect(200, done);20 })2122 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();2425 app.use(function(req, res){26 req.acceptsLanguage('es').should.not.be.ok;
27 unmodified lines
modified:test/req.acceptsLanguages.js+2 added-2 removed
2 unmodified lines
3 , request = require('supertest');45describe('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();910 app.use(function(req, res){11 req.acceptsLanguages('en-us').should.be.ok;
6 unmodified lines
18 .set('Accept-Language', 'en;q=.5, en-us')19 .expect(200, done);20 })2122 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();2425 app.use(function(req, res){26 req.acceptsLanguages('es').should.not.be.ok;
27 unmodified lines