diff options
| -rw-r--r-- | test/service/locationSpec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/service/locationSpec.js b/test/service/locationSpec.js index e798aa81..a312c1b2 100644 --- a/test/service/locationSpec.js +++ b/test/service/locationSpec.js @@ -17,6 +17,12 @@ function spyOnlyCallsWithArgs(obj, method) { describe('$location', function() { var url; + afterEach(function() { + // link rewriting used in html5 mode on legacy browsers binds to document.onClick, so we need + // to clean this up after each test. + jqLite(document).unbind('click'); + }); + describe('NewUrl', function() { beforeEach(function() { url = new LocationUrl('http://www.domain.com:9877/path/b?search=a&b=c&d#hash'); |
