Skip to content

Commit

Permalink
Fully cover makePromise.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Sep 13, 2015
1 parent c543e53 commit c60cfbb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/unexpected.spec.js
Expand Up @@ -7743,6 +7743,16 @@ describe('unexpected', function () {
});
});
});

describe('#settle', function () {
it('should support non-Promise leaves', function () {
return expect.promise.settle({
a: 123
}).then(function (promises) {
expect(promises, 'to equal', []);
});
});
});
});

describe.skipIf(typeof Buffer === 'undefined', 'when decoded as assertion', function () {
Expand Down

0 comments on commit c60cfbb

Please sign in to comment.