Unit tests fail due to unhandled rejection in angular-mocks
jwngr opened this issue · comments
Version info
Branch: master
Chrome: 55.0.2883
Node.js: 4.4.5
Steps to reproduce
Simply run grunt test:unit
.
Expected behavior
Tests pass without any errors.
Actual behavior
Tests return the following error in the angular-mocks
dependency:
√ should return true once $loaded() promise is rejected
$ref
√ should return Firebase instance it was created with
Chrome 56.0.2924 (Windows 8.1 0.0.0) ERROR
Uncaught Possibly unhandled rejection: {}
at .../angularfire/node_modules/angular-mocks/angular-mocks.js:250
Chrome 56.0.2924 (Windows 8.1 0.0.0) ERROR
Uncaught Possibly unhandled rejection: {}
at .../angularfire/node_modules/angular-mocks/angular-mocks.js:250
I believe this is caused by angular/angular.js#15516 and should be fixed by simply updating the angular-mocks
dependency. PR incoming.