Skip to content

Instantly share code, notes, and snippets.

View hmayer00's full-sized avatar

Henry Mayer hmayer00

  • Curious.com
  • SF Bay Area
View GitHub Profile
# The base is stolen from @gist: https://gist.github.com/gr2m/2191748, and then substantially modified.
beforeEach ->
@addMatchers
toBePromise: ->
@actual.done && !@actual.resolve
toBeRejected: ->
@actual.state() == "rejected"
toBeResolved: ->
@actual.state() == "resolved"
toBeResolvedWith: ->