electron/spec/fixtures/module/promise.js

6 строки
113 B
JavaScript

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