Skip to content

Commit b59a957

Browse files
committed
add last test to 100% coverage
Closes #8
1 parent e0073a3 commit b59a957

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,20 @@ describe('Promise', function () {
5050
done();
5151
});
5252
});
53+
54+
// Is it really so? Seems like a bug
55+
it('should resolve thenable in resolve', function (done) {
56+
var thenable = {
57+
then: function (cb) {
58+
cb(thenable);
59+
}
60+
};
61+
62+
Promise.resolve(thenable).then(function (v) {
63+
assert.equal(thenable, v);
64+
done();
65+
});
66+
});
5367
});
5468

5569
describe('Promise.all', function () {

0 commit comments

Comments
 (0)