diff --git a/package-lock.json b/package-lock.json index b032eeb..818ef0b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ig-types", - "version": "2.0.19", + "version": "3.0.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/test.js b/test.js index fc481ef..1292be2 100755 --- a/test.js +++ b/test.js @@ -103,6 +103,27 @@ var cases = test.Cases({ RegExp: function(assert){ }, + Promise: function(assert){ + var p = assert(Promise.cooperative()) + + var RESOLVE = 123 + + var then + p.then(function(v){ + console.log('then') + then = RESOLVE }) + + var fin + p.finally(function(){ + console.log('finally') + fin = true }) + + p.set(123) + + assert(then == RESOLVE, '.then(..)') + assert(fin, '.finally(..)') + }, + // Date.js Date: function(assert){ var d = new Date()