Skip to content

Commit d384bf8

Browse files
daveboivinjasnell
authored andcommitted
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: nodejs/node-v0.x-archive#25811 Reviewed-By: James M Snell <[email protected]>
1 parent 89b22cc commit d384bf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: doc/api/assert.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Stability: 5 - Locked
44

5-
This module is used for writing unit tests for your applications, you can
5+
This module is used for testing actual values against expected values, you can
66
access it with `require('assert')`.
77

88
## assert.fail(actual, expected, message, operator)

0 commit comments

Comments
 (0)