jasmine test fails with undefined is not a function(evaluating $browser.$$checkUrlChange()) jasmine test fails with undefined is not a function(evaluating $browser.$$checkUrlChange()) angularjs angularjs

jasmine test fails with undefined is not a function(evaluating $browser.$$checkUrlChange())


It seems this issue happens when you have mismatch between angular.js and angular-mocks.js Make sure the two files are of the same version.

Please ignore my original comment to the question


I had experienced exactly the same issues with our rails project.

We upgraded angular.js to 1.2.24, and then our teaspoon testsuite started failing. I looked into angular.js sources/commits story etc., and then realized, that we had forgot to update angular mocks (we were using old 1.2.20 version, so we need to run bundle update rails-assets-angular-mocks to force this change). After applying new mocks (they already have $$checkUrlChange function mock) everything started working.

So It looks like you also try to use old mocks objects.