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 231f0c9 commit a5eb04cCopy full SHA for a5eb04c
test/parallel/test-assert-class.js
@@ -13,6 +13,17 @@ if (process.stdout.isTTY) {
13
process.env.NODE_DISABLE_COLORS = '1';
14
}
15
16
+test('Assert constructor requires new', () => {
17
+ assert.throws(
18
+ () => Assert(),
19
+ {
20
+ code: 'ERR_INVALID_ARG_TYPE',
21
+ name: 'TypeError',
22
+ message: /Assert/,
23
+ }
24
+ );
25
+});
26
+
27
test('Assert class basic instance', () => {
28
const assertInstance = new Assert();
29
0 commit comments