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

随声附和 提交于 2019-11-30 05:55:24

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!