function prefix(passed) {
            return (
              'Expected a promise ' +
              (passed ? 'not ' : '') +
              'to be rejected with ' +
              matchersUtil.pp(expectedValue)
            );
          }
Expect a promise to be rejected with a value equal to the expected, using deep equality comparison.
@function
@async
@name async-matchers#toBeRejectedWith
@since 3.3.0
@param {Object} expected - Value that the promise is expected to be rejected with
@example
await expectAsync(aPromise).toBeRejectedWith({prop: 'value'});
@example
return expectAsync(aPromise).toBeRejectedWith({prop: 'value'});