Skip to content

Commit

Permalink
Merge pull request #450 from axelpale/patch-1
Browse files Browse the repository at this point in the history
[Docs] Clarify doesNotThrow parameters
  • Loading branch information
ljharb committed Nov 25, 2018
2 parents 96de340 + f53e3f1 commit 1225d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.markdown
Expand Up @@ -266,7 +266,7 @@ Assert that the function call `fn()` throws an exception. `expected`, if present

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

Assert that the function call `fn()` does not throw an exception. `msg` is an optional description of the assertion.
Assert that the function call `fn()` does not throw an exception. `expected`, if present, limits what should not be thrown. For example, set `expected` to `/user/` to fail the test only if the string representation of the exception contains the word `user`. Any other exception would pass the test. If `expected` is omitted, any exception will fail the test. `msg` is an optional description of the assertion.

## t.test(name, [opts], cb)

Expand Down

0 comments on commit 1225d01

Please sign in to comment.