UNPKG

backstopjs

Version:

BackstopJS: Catch CSS curveballs.

10 lines (9 loc) 276 B
module.exports = function (promises) { return Promise.all(promises.map(function (promise) { return promise.then(function (value) { return { state: 'fulfilled', value }; }).catch(function (reason) { return { state: 'rejected', reason }; }); })); };