diff options
| author | Misko Hevery | 2011-08-10 13:15:43 -0700 |
|---|---|---|
| committer | Misko Hevery | 2011-08-12 15:47:47 -0700 |
| commit | 42062dab34192d2cb9ed66a720c0f791408c61c0 (patch) | |
| tree | ca85b56f12dd0138dbe3d7f1346c4125d64e09a5 /test/service/routeSpec.js | |
| parent | 1c9fc1e1dec67c8c05f02da1e0853439238c4d8e (diff) | |
| download | angular.js-42062dab34192d2cb9ed66a720c0f791408c61c0.tar.bz2 | |
refactor(scope): remove $flush/$observe ng:eval/ng:eval-order
Diffstat (limited to 'test/service/routeSpec.js')
| -rw-r--r-- | test/service/routeSpec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/service/routeSpec.js b/test/service/routeSpec.js index 6c6c0868..bfe201d1 100644 --- a/test/service/routeSpec.js +++ b/test/service/routeSpec.js @@ -71,7 +71,7 @@ describe('$route', function() { $route.when('/foo', {template: 'foo.html'}); $route.onChange(onChangeSpy); - expect($route.current).toBeNull(); + expect($route.current).toBeUndefined(); expect(onChangeSpy).not.toHaveBeenCalled(); $location.updateHash('/foo'); @@ -94,7 +94,7 @@ describe('$route', function() { $route.when('/foo', {template: 'foo.html'}); $route.otherwise({template: '404.html', controller: NotFoundCtrl}); $route.onChange(onChangeSpy); - expect($route.current).toBeNull(); + expect($route.current).toBeUndefined(); expect(onChangeSpy).not.toHaveBeenCalled(); $location.updateHash('/unknownRoute'); @@ -164,7 +164,7 @@ describe('$route', function() { $route.when('/baz', {redirectTo: '/bar'}); $route.otherwise({template: '404.html'}); $route.onChange(onChangeSpy); - expect($route.current).toBeNull(); + expect($route.current).toBeUndefined(); expect(onChangeSpy).not.toHaveBeenCalled(); scope.$digest(); //triggers initial route change - match the redirect route |
