jasmine-fixture
Version:
Makes injecting HTML snippets into the DOM easy & clean!
18 lines (14 loc) • 388 B
text/coffeescript
root = global
root.invariants =
passingSpec: ->
Invariant -> @result.code == 0
Invariant -> @result.stderr == ""
Invariant -> expect(@result.stdout).toContain """
# fail 0
# ok
"""
failingSpecs: (numberOfFailures = 1) ->
Invariant -> @result.code != 0
Invariant -> expect(@result.stdout).toContain """
# fail #{numberOfFailures}
"""