From eee5583cf360dcd5dd956f68f3caf2c9bc884d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Legan=C3=A9s=20Combarro?= Date: Sun, 1 Mar 2015 12:30:30 +0100 Subject: [PATCH] Entries: Add `notOk()` entry Closes gh-99 --- entries/notOk.xml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 entries/notOk.xml diff --git a/entries/notOk.xml b/entries/notOk.xml new file mode 100644 index 0000000..4459335 --- /dev/null +++ b/entries/notOk.xml @@ -0,0 +1,37 @@ + + + + notOk() + + + Expression being tested + + + A short description of the assertion + + + + A boolean check, inverse of ok() and CommonJS's assert.ok(), and equivalent to JUnit's assertFalse(). Passes if the first argument is falsy. + + +

notOk() requires just one argument. If the argument evaluates to false, the assertion passes; otherwise, it fails. If a second message argument is provided, it will be displayed in place of the result.

+
+ + + + + + +