Skip to content

Commit

Permalink
Merge pull request #101 from domenic/patch-1
Browse files Browse the repository at this point in the history
Document that expected must be a RegExp
  • Loading branch information
James Halliday committed Aug 28, 2014
2 parents 3cef0da + 51278a2 commit 593e7c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Aliases: `t.notLooseEqual()`, `t.notLooseEquals()`

## t.throws(fn, expected, msg)

Assert that the function call `fn()` throws an exception.
Assert that the function call `fn()` throws an exception. `expected`, if present, must be a `RegExp`.

## t.doesNotThrow(fn, expected, msg)

Expand Down

0 comments on commit 593e7c9

Please sign in to comment.