5 lines
109 B
JavaScript
5 lines
109 B
JavaScript
exports.reject = function (promise) {
|
|
return promise.then(function () {
|
|
throw Error('rejected')
|
|
})
|
|
}
|