From b79ed485ad11a55941579f425f7d05dff298478d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?=
Date: Sat, 28 Feb 2015 18:14:55 -0500
Subject: [PATCH] Update the generated guide to mention the showDiff argument
of assert
---
out/guide/plugins/index.html | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/out/guide/plugins/index.html b/out/guide/plugins/index.html
index d63d32e5..9871a9b9 100644
--- a/out/guide/plugins/index.html
+++ b/out/guide/plugins/index.html
@@ -173,13 +173,14 @@ Basic Assertion
the assertion failed and the first error message will be thrown as part of a chai.AssertionError
.
Conversely, if the language chain was negated, it will consider false
a pass and true
a failure.
The second error message will be included in the thrown error instead.
-In all, the assert
method accepts five arguments:
+In all, the assert
method accepts six arguments:
- a boolean (result of a truth test)
- a string error message to be used if the first argument is
false
- a string error message to be used if the assertion is negated and the first argument is
true
- (optional) the expected value
- (optional) the actual value, which will default to
_obj
+- (optional) a boolean which indicates whether to display a diff in addition to the message if the first argument is
false
Composing Error Messages
As you can see from the above example, Chai can accept template tags to dynamically compose
@@ -232,4 +233,4 @@