mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Update assert.markdown
The current wording "This module is used for writing unit tests for your applications, you can access it with require('assert')." implies that this module should only be used in development while unit testing.
The article "Error Handling in Node.js" by Joyent (https://www.joyent.com/developers/node/design/errors) uses the assert module in an efficient way to validate required function arguments.
PR-URL: https://github.com/joyent/node/pull/25811
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
89b22ccbe1
commit
d384bf8f84
1 file changed
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
Stability: 5 - Locked
|
||||
|
||||
This module is used for writing unit tests for your applications, you can
|
||||
This module is used for testing actual values against expected values, you can
|
||||
access it with `require('assert')`.
|
||||
|
||||
## assert.fail(actual, expected, message, operator)
|
||||
|
||||
Reference in new issue
Block a user