diff options
author | Nicolas Talle <dev@nicolab.net> | 2014-02-22 16:02:10 +0100 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2014-02-23 18:09:26 +0400 |
commit | 1efe6837b23a2a70a226b4fcab8dc5ea1c7bf2c8 (patch) | |
tree | 56b9a8351e6552e119c42c5a50a3563c5ea099d2 | |
parent | e0c530259050c4ecc6fe9cf8963992575e43f376 (diff) | |
download | node-1efe6837b23a2a70a226b4fcab8dc5ea1c7bf2c8.tar.gz |
doc: update assert.markdown
Update assert.throws() and assert.doesNotThrow() docs
-rw-r--r-- | doc/api/assert.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/assert.markdown b/doc/api/assert.markdown index 5849f6d93..1a6602221 100644 --- a/doc/api/assert.markdown +++ b/doc/api/assert.markdown @@ -39,7 +39,7 @@ Tests strict non-equality, as determined by the strict not equal operator ( `!== ## assert.throws(block, [error], [message]) -Expects `block` to throw an error. `error` can be constructor, regexp or +Expects `block` to throw an error. `error` can be constructor, `RegExp` or validation function. Validate instanceof using constructor: @@ -76,7 +76,7 @@ Custom error validation: ## assert.doesNotThrow(block, [message]) -Expects `block` not to throw an error, see assert.throws for details. +Expects `block` not to throw an error, see `assert.throws` for details. ## assert.ifError(value) |