Add another simple finally test

This commit is contained in:
spacejack 2018-02-19 15:03:53 -05:00
parent f99b804f5b
commit 17c7855d91

View file

@ -54,6 +54,13 @@ o.spec("promise", function() {
o(value).equals(1)
}).then(done)
})
o("finally returns promise", function(done) {
var promise = Promise.resolve(1)
promise.finally(function(value) {
o(value).equals(undefined)
}).finally(done)
})
o("finally after then returns promise", function(done) {
var promise = Promise.resolve(1)