Skip to content

Commit 58fe8ae

Browse files
🔍 test: Check errors are instanceof Error.
1 parent 4f95108 commit 58fe8ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/src/error.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ function macro ( t , MyCodecError ) {
2121

2222
t.truthy( myerror ) ;
2323

24+
t.true( myerror instanceof Error ) ;
25+
2426
t.true( myerror instanceof ValueError ) ;
2527

2628
t.true( myerror instanceof CodecError ) ;

0 commit comments

Comments
 (0)