I've done unit tests with just regular promises, but how does one go about testing $q.all? I have not found very good or basic examples anywhere in Google or StackOverflow of how to do this.
Example:
$q.all([
self.query(queryA),
self.query(queryB)
]).then(function() {
console.log('Finished creating tables!');
});
Assuming self.query returns a promise.
Aucun commentaire:
Enregistrer un commentaire