Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
Work around mochajs/mocha#1241
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrabe committed Jun 18, 2014
1 parent e455cf9 commit 059bd7d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ describe 'smal-bootstrap', ->

before ->
eq = (input, expected) ->
expect(index input).to.equal expected # just compares strings, no deep equal needed
actual = index input
try
expect(actual).to.equal expected # just compares strings, no deep equal needed
catch err
err.message = 'not equal'
err.showDiff = false
throw err

it 'should accept empty input', ->
eq '', '''
Expand Down

0 comments on commit 059bd7d

Please sign in to comment.