This commit is contained in:
TJ Holowaychuk 2012-07-06 08:15:28 -07:00
parent 32b8613708
commit b9e32ec2c4

View File

@ -17,8 +17,9 @@ describe('Router', function(){
router.route('get', '/foo', function(){});
router.route('get', '/foob?', function(){});
router.route('get', '/bar', function(){});
var method = 'GET'
, url = '/foo?bar=baz';
var method = 'GET';
var url = '/foo?bar=baz';
var route = router.match(method, url, 0);
route.constructor.name.should.equal('Route');