code: function toResolve() {
    return {
      compare(actual) {
        assertPromise(actual);
        const success = jasmine.createSpy('Promise success callback');
        actual.then(success, angular.noop);
        createScope().$digest();
  
        const pass = isJasmine2 ? success.calls.any() : success.calls.length > 0;
        const message = 'Expected promise {not} to have been resolved';
        return getResult('toResolve', pass, message);
      }
    };
  }
docs: /*
  Asserts whether the actual promise object resolves