Skip to content

Commit

Permalink
keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
petkaantonov committed Jan 23, 2016
1 parent 0bc9bcd commit 612ad75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/mocha/bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -1188,15 +1188,15 @@ describe("promised bind", function() {
});

specify("works with immediate finally", function() {
return Promise.bind(Promise.delay(1, THIS), [1,2,3]).finally(function() {
return Promise.bind(Promise.delay(1, THIS), [1,2,3]).lastly(function() {
assert.equal(this, THIS);
}).then(function() {
assert.equal(this, THIS);
});
});

specify("works with delayed finally", function() {
return Promise.bind(Promise.delay(1, THIS), [1,2,3]).finally(function() {
return Promise.bind(Promise.delay(1, THIS), [1,2,3]).lastly(function() {
assert.equal(this, THIS);
return Promise.delay(1);
}).then(function() {
Expand Down

0 comments on commit 612ad75

Please sign in to comment.