diff --git a/src/analytics-manager.spec.js b/src/analytics-manager.spec.js index fc8615f..1cefea5 100644 --- a/src/analytics-manager.spec.js +++ b/src/analytics-manager.spec.js @@ -342,6 +342,23 @@ describe("AnalyticsManager", function() { expect(path).to.equal(pathName + '?' + goodQuery); }); - it("should provide path without query parameters if no parameter is given", function () {}); + it("should provide path without query parameters if no parameter is given", function () { + var pathName = '/one/two/three/four'; + var queryParam = ''; + + subject.init({ + site: 'testsite', + searchQueryParam: queryParam + }); + + sandbox.stub(subject, 'getWindowLocation').returns({ + pathname: pathName, + search: pathName + '?hjghsgd&digg', + }); + + var path = subject.pathInfo(); + + expect(path).to.equal(pathName); + }); }); });