I am trying to unit test a $scope.$evalAsync function. Here is my code:
$scope.$evalAsync(function(done) {
//enable the popover plugin
done();
jQuery('[data-toggle="popover"]').popover();
$scope.isKioskIdLoaded.state = true;
});
I am having difficult understanding how to get the evalAsync to run in my Jasmine test itself. I am trying to utilize the done() function that is in Jasmine 2.0.
Aucun commentaire:
Enregistrer un commentaire