Skip to content

Commit

Permalink
test: add tests for prettyprinted JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
dbushong committed Jul 12, 2017
1 parent dc15426 commit 177b881
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/assertive.test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ describe 'deepEqual', ->
err = throws -> deepEqual explanation, [null], [undefined]
include explanation, err.message

it 'prettyprints Actual and Expected values', ->
err = throws -> deepEqual { b: 2, a: 1 }, { b: 3, a: 1 }
match /"a": 1,\n "b": 2\n[^]+"a": 1,\n "b": 3\n/, err.message

describe 'notDeepEqual', ->
it 'errors out when you provide too few or too many args', ->
Expand Down

0 comments on commit 177b881

Please sign in to comment.