function wrapAsyncCompare(name, matcherFactory) {
    return function() {
      var self = this;

      // Capture the call stack here, before we go async, so that it will contain
      // frames that are relevant to the user instead of just parts of Jasmine.
      var errorForStack = j$.util.errorWithStack();

      return this.expector
        .compare(name, matcherFactory, arguments)
        .then(function(result) {
          self.expector.processResult(result, errorForStack);
        });
    };
  }
Invert the matcher following this {@link expectAsync}
@member
@name async-matchers#not
@type {async-matchers}
@example
await expectAsync(myPromise).not.toBeResolved();
@example
return expectAsync(myPromise).not.toBeResolved();