From d384bf8f84489d7c82ad60de1ea9f8b9bc54adf8 Mon Sep 17 00:00:00 2001 From: daveboivin Date: Thu, 30 Jul 2015 16:58:48 -0500 Subject: [PATCH] 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 --- doc/api/assert.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/assert.markdown b/doc/api/assert.markdown index 771a87338e650e..dc93e9cdd67503 100644 --- a/doc/api/assert.markdown +++ b/doc/api/assert.markdown @@ -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)