Skip to content
Myr

tests: remove should usage from Router tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fixes #4635

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 0fbbc29 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • tests:+3 added−3 removed

1 file+3 added−3 removed

modified:test/Router.js+3 added-3 removed
30 unmodified lines
31 var router = new Router();32 var another = new Router();3334 another.get('/:bar', function(req, res){35 req.params.bar.should.equal('route');35 assert.strictEqual(req.params.bar, 'route')36 res.end();37 });38 router.use('/:foo', another);39
3 unmodified lines
43 it('should handle blank URL', function(done){44 var router = new Router();4546 router.use(function (req, res) {47 false.should.be.true()47 throw new Error('should not be called')48 });4950 router.handle({ url: '', method: 'GET' }, {}, done);51 });
32 unmodified lines
84 });8586 var res = {87 send: function(val) {88 val.should.equal('foo');88 assert.strictEqual(val, 'foo')89 done();90 }91 }92 router.handle({ url: '/foo', method: 'GET' }, res);
468 unmodified lines