summaryrefslogtreecommitdiff
path: root/test/simple/test-assert.js
diff options
context:
space:
mode:
authorMikeal Rogers <mikeal.rogers@gmail.com>2010-05-21 12:05:55 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-05-21 12:06:12 -0700
commitfe3d8f2411209b202b7fe74cb48b582ffc5cfc5f (patch)
tree0a7a1077dacf6c1ed59449812d18f70e3b05531a /test/simple/test-assert.js
parent2b34363d03e0718c9e9f39982c723b806558c759 (diff)
downloadnode-new-fe3d8f2411209b202b7fe74cb48b582ffc5cfc5f.tar.gz
Add assert.ifError
Diffstat (limited to 'test/simple/test-assert.js')
-rw-r--r--test/simple/test-assert.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/simple/test-assert.js b/test/simple/test-assert.js
index 610236856a..10aeb5cc58 100644
--- a/test/simple/test-assert.js
+++ b/test/simple/test-assert.js
@@ -154,3 +154,6 @@ try {
}
assert.equal(true,threw,'a.doesNotThrow is not catching type matching errors');
+assert.throws(function () {assert.ifError(new Error('test error'))});
+assert.doesNotThrow(function(){assert.ifError(null)});
+assert.doesNotThrow(function(){assert.ifError()});