mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
test: Update assert module tests
This commit is contained in:
committed by
Ben Noordhuis
parent
f4f037aa64
commit
365fdbfc64
@@ -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)');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user