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

Commit ff56694

Browse files
test(): remove redundant hashPrefix params
1 parent 549b067 commit ff56694

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
@@ -367,7 +367,7 @@ describe('$location', function() {
367367

368368

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

372372
expect(function() {
373373
locationUrl.$$parse('http://other.server.org/path#/path');
@@ -376,7 +376,7 @@ describe('$location', function() {
376376

377377

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

381381
expect(function() {
382382
locationUrl.$$parse('http://server.org/path#/path');
@@ -2431,9 +2431,9 @@ describe('$location', function() {
24312431
var locationUrl, locationUmlautUrl, locationIndexUrl;
24322432

24332433
beforeEach(function() {
2434-
locationUrl = new LocationHtml5Url('http://server/pre/', 'http://server/pre/', 'http://server/pre/path');
2435-
locationUmlautUrl = new LocationHtml5Url('http://särver/pre/', 'http://särver/pre/', 'http://särver/pre/path');
2436-
locationIndexUrl = new LocationHtml5Url('http://server/pre/index.html', 'http://server/pre/', 'http://server/pre/path');
2434+
locationUrl = new LocationHtml5Url('http://server/pre/', 'http://server/pre/');
2435+
locationUmlautUrl = new LocationHtml5Url('http://särver/pre/', 'http://särver/pre/');
2436+
locationIndexUrl = new LocationHtml5Url('http://server/pre/index.html', 'http://server/pre/');
24372437
});
24382438

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

0 commit comments

Comments
 (0)