This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The base is stolen from @gist: https://gist.github.com/gr2m/2191748, and then substantially modified. | |
beforeEach -> | |
@addMatchers | |
toBePromise: -> | |
@actual.done && [email protected] | |
toBeRejected: -> | |
@actual.state() == "rejected" | |
toBeResolved: -> | |
@actual.state() == "resolved" | |
toBeResolvedWith: -> |