Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

test: Update assert module tests

  • Loading branch information...
mmalecki authored and bnoordhuis committed Oct 1, 2011
1 parent f4f037a commit 365fdbfc643ddd5b04bd704aab585c46a58598cf
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/simple/test-assert.js
@@ -33,6 +33,12 @@ function makeBlock(f) {
assert.ok(common.indirectInstanceOf(a.AssertionError.prototype, Error),
'a.AssertionError instanceof Error');

assert.throws(makeBlock(a, false), a.AssertionError, 'ok(false)');

assert.doesNotThrow(makeBlock(a, true), a.AssertionError, 'ok(true)');

assert.doesNotThrow(makeBlock(a, 'test', 'ok(\'test\')'));

assert.throws(makeBlock(a.ok, false),
a.AssertionError, 'ok(false)');

0 comments on commit 365fdbf

Please sign in to comment.
You can’t perform that action at this time.