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); } }; 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 () {