Skip to content

Commit 46ee7c4

Browse files
committed
Merge pull request #980 from joekrill/Fix-issue-#979
Update PathUtils.js
2 parents 5474640 + 78bae66 commit 46ee7c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/PathUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ var PathUtils = {
151151
if (queryString)
152152
return PathUtils.withoutQuery(path) + '?' + queryString;
153153

154-
return Path.withoutQuery(path);
154+
return PathUtils.withoutQuery(path);
155155
}
156156

157157
};

modules/__tests__/PathUtils-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ describe('PathUtils.withQuery', function () {
320320
});
321321

322322
it('removes query string', function () {
323-
expect(Path.withQuery('/a/b/c?a=b', { a: undefined })).toEqual('/a/b/c');
323+
expect(PathUtils.withQuery('/a/b/c?a=b', { a: undefined })).toEqual('/a/b/c');
324324
});
325325

326326
it('handles special characters', function () {

0 commit comments

Comments
 (0)