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