From f6dde61e5a371b1627ae1425f3c327b308280af2 Mon Sep 17 00:00:00 2001 From: Joe Krill Date: Sat, 21 Mar 2015 13:51:17 -0400 Subject: [PATCH 1/2] Update PathUtils.js Fix issue #979 which caused an error when running the examples because of a typo. --- modules/PathUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/PathUtils.js b/modules/PathUtils.js index 532d3442ea..996cf0f49e 100644 --- a/modules/PathUtils.js +++ b/modules/PathUtils.js @@ -151,7 +151,7 @@ var PathUtils = { if (queryString) return PathUtils.withoutQuery(path) + '?' + queryString; - return Path.withoutQuery(path); + return PathUtils.withoutQuery(path); } }; From a1d865dccdfe9d0df10be900edddcca0a7c849d2 Mon Sep 17 00:00:00 2001 From: Joe Krill Date: Sat, 21 Mar 2015 14:09:11 -0400 Subject: [PATCH 2/2] Fix related tests for issue #979 Tests needed to be updated as well. --- modules/__tests__/PathUtils-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/__tests__/PathUtils-test.js b/modules/__tests__/PathUtils-test.js index a56f457194..e8cff56dd5 100644 --- a/modules/__tests__/PathUtils-test.js +++ b/modules/__tests__/PathUtils-test.js @@ -320,7 +320,7 @@ describe('PathUtils.withQuery', function () { }); it('removes query string', function () { - expect(Path.withQuery('/a/b/c?a=b', { a: undefined })).toEqual('/a/b/c'); + expect(PathUtils.withQuery('/a/b/c?a=b', { a: undefined })).toEqual('/a/b/c'); }); it('handles special characters', function () {