diff options
Diffstat (limited to 'test/ngRoute/routeSpec.js')
| -rw-r--r-- | test/ngRoute/routeSpec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ngRoute/routeSpec.js b/test/ngRoute/routeSpec.js index de7ccb8d..52484116 100644 --- a/test/ngRoute/routeSpec.js +++ b/test/ngRoute/routeSpec.js @@ -389,7 +389,7 @@ describe('$route', function() { var onChangeSpy = jasmine.createSpy('onChange'); $rootScope.$on('$routeChangeStart', onChangeSpy); - expect($route.current).toBeUndefined(); + expect($route.current).not.toBeUndefined(); expect(onChangeSpy).not.toHaveBeenCalled(); $location.path('/unknownRoute'); @@ -426,7 +426,7 @@ describe('$route', function() { // init $rootScope.$on('$routeChangeStart', onChangeSpy); - expect($route.current).toBeUndefined(); + expect($route.current).not.toBeUndefined(); expect(onChangeSpy).not.toHaveBeenCalled(); @@ -434,7 +434,7 @@ describe('$route', function() { $location.path('/unknownRoute'); $rootScope.$digest(); - expect(currentRoute).toBeUndefined(); + expect(currentRoute).not.toBeUndefined(); expect(nextRoute.templateUrl).toBe('404.html'); expect($route.current.templateUrl).toBe('404.html'); expect(onChangeSpy).toHaveBeenCalled(); @@ -770,7 +770,7 @@ describe('$route', function() { var onChangeSpy = jasmine.createSpy('onChange'); $rootScope.$on('$routeChangeStart', onChangeSpy); - expect($route.current).toBeUndefined(); + expect($route.current).not.toBeUndefined(); expect(onChangeSpy).not.toHaveBeenCalled(); $location.path('/'); |
