Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 4363d57

Browse files
test(): remove redundant hashPrefix params
1 parent 53cb1d7 commit 4363d57

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/ng/locationSpec.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ describe('$location', function() {
389389

390390

391391
it('should throw error when invalid server url given', function() {
392-
var locationUrl = new LocationHtml5Url('http://server.org/base/abc', 'http://server.org/base/', '/base');
392+
var locationUrl = new LocationHtml5Url('http://server.org/base/abc', 'http://server.org/base/');
393393

394394
expect(function() {
395395
locationUrl.$$parse('http://other.server.org/path#/path');
@@ -398,7 +398,7 @@ describe('$location', function() {
398398

399399

400400
it('should throw error when invalid base url given', function() {
401-
var locationUrl = new LocationHtml5Url('http://server.org/base/abc', 'http://server.org/base/', '/base');
401+
var locationUrl = new LocationHtml5Url('http://server.org/base/abc', 'http://server.org/base/');
402402

403403
expect(function() {
404404
locationUrl.$$parse('http://server.org/path#/path');
@@ -2453,9 +2453,9 @@ describe('$location', function() {
24532453
var locationUrl, locationUmlautUrl, locationIndexUrl;
24542454

24552455
beforeEach(function() {
2456-
locationUrl = new LocationHtml5Url('http://server/pre/', 'http://server/pre/', 'http://server/pre/path');
2457-
locationUmlautUrl = new LocationHtml5Url('http://särver/pre/', 'http://särver/pre/', 'http://särver/pre/path');
2458-
locationIndexUrl = new LocationHtml5Url('http://server/pre/index.html', 'http://server/pre/', 'http://server/pre/path');
2456+
locationUrl = new LocationHtml5Url('http://server/pre/', 'http://server/pre/');
2457+
locationUmlautUrl = new LocationHtml5Url('http://särver/pre/', 'http://särver/pre/');
2458+
locationIndexUrl = new LocationHtml5Url('http://server/pre/index.html', 'http://server/pre/');
24592459
});
24602460

24612461
it('should rewrite URL', function() {

0 commit comments

Comments
 (0)