We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 620a261 commit 06e5fafCopy full SHA for 06e5faf
test/parallel/test-console.js
@@ -73,3 +73,11 @@ assert.ok(/^__proto__: \d+ms$/.test(strings.shift().trim()));
73
assert.ok(/^constructor: \d+ms$/.test(strings.shift().trim()));
74
assert.ok(/^hasOwnProperty: \d+ms$/.test(strings.shift().trim()));
75
assert.equal(strings.length, 0);
76
+
77
+assert.throws(() => {
78
+ console.assert(false, 'should throw');
79
+}, /should throw/);
80
81
+assert.doesNotThrow(() => {
82
+ console.assert(true, 'this should not throw');
83
+});
0 commit comments