Add another simple finally test
This commit is contained in:
parent
f99b804f5b
commit
17c7855d91
1 changed files with 7 additions and 0 deletions
|
|
@ -54,6 +54,13 @@ o.spec("promise", function() {
|
||||||
o(value).equals(1)
|
o(value).equals(1)
|
||||||
}).then(done)
|
}).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) {
|
o("finally after then returns promise", function(done) {
|
||||||
var promise = Promise.resolve(1)
|
var promise = Promise.resolve(1)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue