From 544d2616b429e5059a1ff117c483102b7495b992 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 12 Aug 2013 10:56:36 -0700 Subject: chore($location): drop bugus error we can never get to this state, so dropping the error --- test/ng/locationSpec.js | 7 ------- 1 file changed, 7 deletions(-) (limited to 'test') diff --git a/test/ng/locationSpec.js b/test/ng/locationSpec.js index 757ec16e..4df6eb43 100644 --- a/test/ng/locationSpec.js +++ b/test/ng/locationSpec.js @@ -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'); -- cgit v1.2.3