File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,12 @@ assert.strictEqual(e.e(), 'e');
7575assert . strictEqual ( e . constructor , E ) ;
7676
7777// should throw with invalid arguments
78- assert . throws ( function ( ) { inherits ( A , { } ) ; } , TypeError ) ;
79- assert . throws ( function ( ) { inherits ( A , null ) ; } , TypeError ) ;
80- assert . throws ( function ( ) { inherits ( null , A ) ; } , TypeError ) ;
78+ assert . throws ( function ( ) {
79+ inherits ( A , { } ) ;
80+ } , / ^ T y p e E r r o r : T h e s u p e r c o n s t r u c t o r t o " i n h e r i t s " m u s t h a v e a p r o t o t y p e $ / ) ;
81+ assert . throws ( function ( ) {
82+ inherits ( A , null ) ;
83+ } , / ^ T y p e E r r o r : T h e s u p e r c o n s t r u c t o r t o " i n h e r i t s " m u s t n o t b e n u l l o r u n d e f i n e d $ / ) ; // eslint-disable-line max-len
84+ assert . throws ( function ( ) {
85+ inherits ( null , A ) ;
86+ } , / ^ T y p e E r r o r : T h e c o n s t r u c t o r t o " i n h e r i t s " m u s t n o t b e n u l l o r u n d e f i n e d $ / ) ;
You can’t perform that action at this time.
0 commit comments