diff options
Diffstat (limited to 'test/servicesSpec.js')
| -rw-r--r-- | test/servicesSpec.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/test/servicesSpec.js b/test/servicesSpec.js index 77ad59df..cf45becb 100644 --- a/test/servicesSpec.js +++ b/test/servicesSpec.js @@ -227,16 +227,6 @@ describe("service", function(){ expect(scope.$location.hash).toEqual('path?a=b'); expect(scope.$location.hashSearch).toEqual({a: 'b'}); expect(scope.$location.hashPath).toEqual('path'); - }); - - it('should not update browser if you call cancel()', function() { - spyOn($browser, 'setUrl'); - - scope.$location.update('http://www.angularjs.org/a/b#a/b'); - scope.$location.cancel(); - scope.$eval(); - - expect($browser.setUrl).not.toHaveBeenCalled(); }); }); |
