Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mocha Tests, Angular app getting 'undefined' is not a function (evaluating '$browser.state()')

When running my mocha tests, they were working just fine, but now I am getting... 'undefined' is not a function (evaluating '$browser.state()') for quite a few (but not all) of them. Any ideas where this is coming from? Anyone seen this before?

like image 529
leebrandt Avatar asked Oct 27 '14 23:10

leebrandt


1 Answers

I had the same problem and PSL's suggestion fixed it. You can get the latest version (at time of writing) here:

https://code.angularjs.org/1.3.0/angular-mocks.js

like image 163
SharkAlley Avatar answered Oct 18 '22 19:10

SharkAlley