From 5564f462631605d4d0851c82c7c50ed06a3ea5c1 Mon Sep 17 00:00:00 2001 From: webcarrot Date: Fri, 2 Sep 2016 14:30:58 +0200 Subject: [PATCH] Last typo fix in tests? --- tests/unit/lib/router.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/lib/router.js b/tests/unit/lib/router.js index b663eb5..154c2f9 100644 --- a/tests/unit/lib/router.js +++ b/tests/unit/lib/router.js @@ -304,7 +304,7 @@ describe('Router', function () { var routeFoo = router.getRoute(arrayPathWithDifferentPropsFoo); expect(routeFoo.params.foo).to.equal('foo'); var routeBar = router.getRoute(arrayPathWithDifferentPropsBar); - expect(routeBar.params.foo).to.equal('bar'); + expect(routeBar.params.bar).to.equal('bar'); }); it('should handle a hash fragment with a question-mark', function () { var route = router.getRoute('/finance/news/test.html#?', {method: 'get'}); @@ -425,11 +425,11 @@ describe('Router', function () { }); it('array path with different props', function () { var pathFoo = router.makePath('array_path_with_different_props', { - foo: "foo" + foo: 'foo' }); expect(pathFoo).to.equal(arrayPathWithDifferentPropsFoo); var pathBar = router.makePath('array_path_with_different_props', { - bar: "bar" + bar: 'bar' }); expect(pathBar).to.equal(arrayPathWithDifferentPropsBar); var pathInvalid = router.makePath('array_path_with_different_props', {});