electron/spec/fixtures/module/promise.js
2016-03-30 17:00:31 -07:00

5 lines
113 B
JavaScript

exports.twicePromise = function (promise) {
return promise.then(function (value) {
return value * 2
})
}