Menu
  • HOME
  • TAGS

Unit testing promises in js-data-angular models

angularjs,angular-promise,jsdata

I think you forgot to call $scope.digest() in your test. Here is a working fiddle. After you call startEditing(), you should call $scope.$digest() so that your mock promise is executed and you can get your data in then block. Hope it helps....