Change spec to test Promise in both side

This commit is contained in:
Ryohei Ikegami 2015-07-31 14:45:53 +09:00
parent 92af275f98
commit 428ad20807
2 changed files with 8 additions and 7 deletions

View file

@ -1,3 +1,5 @@
exports.toPromise = function (value) {
return Promise.resolve(value);
};
exports.twicePromise = function (promise) {
return promise.then(function (value) {
return value * 2;
});
}