Skip to content

Instantly share code, notes, and snippets.

@ospatil
Last active December 18, 2015 04:49
Show Gist options
  • Save ospatil/5728023 to your computer and use it in GitHub Desktop.
Save ospatil/5728023 to your computer and use it in GitHub Desktop.
AngularJS 1.1.5 - LocationHashbangUrl duplicates query params
//Two new test-cases in locationSpec 'HashbangUrl' suite
it('should should not duplicate query params - LocationHashbangUrl', function() {
var baseUrl = 'http://www.server.org:1234/?base=param';
url = new LocationHashbangUrl(baseUrl, '#');
url.$$parse(baseUrl);
expect(url.absUrl()).toBe(baseUrl);
});
it('should not duplicate query params - LocationHtml5Url', function() {
var baseUrl = 'http://www.server.org:1234/?base=param';
url = new LocationHtml5Url(baseUrl, '#');
url.$$parse(baseUrl);
expect(url.absUrl()).toBe(baseUrl);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment