My angular js unit tests appear to fail whenever i try to use
scope.$digest();
Or
$httpBackend.flush();
The tests fail and flag the following error -
TypeError: 'undefined' is not a function (evaluating '$browser.$$checkUrlChange()')
The two dont appear to be related in anyway, one propagates the asynchronous execution of backend api calls and the other re-evaluates the scope model.
I have tried executing my tests using both phantomjs and chrome browsers.