diff --git a/doc/api/assert.markdown b/doc/api/assert.markdown index c93c1e7780..5849f6d938 100644 --- a/doc/api/assert.markdown +++ b/doc/api/assert.markdown @@ -74,7 +74,7 @@ Custom error validation: "unexpected error" ); -## assert.doesNotThrow(block, [error], [message]) +## assert.doesNotThrow(block, [message]) Expects `block` not to throw an error, see assert.throws for details. diff --git a/lib/assert.js b/lib/assert.js index 70dc0b0eed..f81c203491 100644 --- a/lib/assert.js +++ b/lib/assert.js @@ -327,7 +327,7 @@ assert.throws = function(block, /*optional*/error, /*optional*/message) { }; // EXTENSION! This is annoying to write outside this module. -assert.doesNotThrow = function(block, /*optional*/error, /*optional*/message) { +assert.doesNotThrow = function(block, /*optional*/message) { _throws.apply(this, [false].concat(pSlice.call(arguments))); };