Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1000310

Browse files
committed
test(ngRoute): fix wrong assertion in ngRoute suite
Previously, this was asserting that $beforeRouteChange was never called. Prior to the preceeding commit, $beforeRouteChange didn't exist --- however it is called during $locationChangeStart. It looks like this test should be asserting that $routeChangeStart is never fired.
1 parent 80ed319 commit 1000310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ngRoute/routeSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ describe('$route', function() {
196196
event.preventDefault();
197197
});
198198

199-
$rootScope.$on('$beforeRouteChange', function(event) {
199+
$rootScope.$on('$routeChangeStart', function(event) {
200200
throw new Error('Should not get here');
201201
});
202202

0 commit comments

Comments
 (0)