@@ -14,7 +14,7 @@ getJasmineRequireObj().toBeRejectedWith = function(j$) {
|
||||
return function toBeRejectedWith(matchersUtil) {
|
||||
return {
|
||||
compare: function(actualPromise, expectedValue) {
|
||||
if (!j$.isPromiseLike(actualPromise)) {
|
||||
if (!j$.private.isPromiseLike(actualPromise)) {
|
||||
throw new Error(
|
||||
`Expected toBeRejectedWith to be called on a promise but was on a ${typeof actualPromise}.`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user