electron/spec-main/fixtures/remote/promise.js

5 lines
116 B
JavaScript

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