diff options
Diffstat (limited to 'test/service/locationSpec.js')
| -rw-r--r-- | test/service/locationSpec.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/service/locationSpec.js b/test/service/locationSpec.js index 73e5e43e..5839b0b6 100644 --- a/test/service/locationSpec.js +++ b/test/service/locationSpec.js @@ -108,7 +108,9 @@ describe('$location', function() { var log = ''; scope.$watch('$location.hash', function(scope){ log += scope.$location.hashPath + ';'; - })(); + }); + expect(log).toEqual(''); + scope.$digest(); expect(log).toEqual(';'); log = ''; |
