mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 12:05:46 +08:00
chore($location): drop bugus error
we can never get to this state, so dropping the error
This commit is contained in:
@@ -338,13 +338,6 @@ describe('$location', function() {
|
||||
});
|
||||
|
||||
|
||||
it('should throw error when invalid server url given', function() {
|
||||
expect(function() {
|
||||
url.$$parse('http://server.org/path#/path');
|
||||
}).toThrow('[$location:istart] Invalid url "http://server.org/path#/path", does not start with "http://www.server.org:1234/base".');
|
||||
});
|
||||
|
||||
|
||||
it('should throw error when invalid hashbang prefix given', function() {
|
||||
expect(function() {
|
||||
url.$$parse('http://www.server.org:1234/base#/path');
|
||||
|
||||
Reference in New Issue
Block a user