Skip to content

Commit

Permalink
Finish code coverage for Q.all.
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed May 26, 2012
1 parent 4c2f0f3 commit a1a4163
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/q-spec.js
Expand Up @@ -501,6 +501,10 @@ describe("propagation", function () {

describe("all", function () {

it("resolves when passed an empty array", function () {
return Q.all([]);
});

it("resolves after any constituent promise is rejected", function () {
var toResolve = Q.defer(); // never resolve
var toReject = Q.defer();
Expand Down

0 comments on commit a1a4163

Please sign in to comment.