EventualSubject

certainty~ EventualSubject

new EventualSubject(subject, promise)

A class which functions as a subject, but doesn't actually execute any assertions until the promise has resolved. Once the promise succeeds, any method calls will be played back on the result value of the promise.

Parameters:
Name Type Description
subject PromiseSubject

The subject wrapping the promise.

promise Promise

The promise being tested.

Source:

Extends

  • DeferredSubject