@@ -11,38 +11,38 @@ const BaseError = ModernError.subclass('BaseError', {
1111 plugins : [ modernErrorsCli ] ,
1212} )
1313const error = new BaseError ( '' )
14- expectType < void > ( error . exit ( ) )
14+ expectType < void > ( BaseError . exit ( error ) )
1515
1616ModernError . subclass ( 'TestError' , { plugins : [ modernErrorsCli ] , cli : { } } )
17- error . exit ( { } )
17+ BaseError . exit ( error , { } )
1818expectAssignable < Options > ( { } )
19- expectError ( error . exit ( undefined ) )
19+ expectError ( BaseError . exit ( error , undefined ) )
2020expectNotAssignable < Options > ( undefined )
2121expectError (
2222 ModernError . subclass ( 'TestError' , { plugins : [ modernErrorsCli ] , cli : true } ) ,
2323)
24- expectError ( error . exit ( true ) )
24+ expectError ( BaseError . exit ( error , true ) )
2525expectNotAssignable < Options > ( true )
2626expectError (
2727 ModernError . subclass ( 'TestError' , {
2828 plugins : [ modernErrorsCli ] ,
2929 cli : { unknown : true } ,
3030 } ) ,
3131)
32- expectError ( error . exit ( { unknown : true } ) )
32+ expectError ( BaseError . exit ( error , { unknown : true } ) )
3333expectNotAssignable < Options > ( { unknown : true } )
3434
3535ModernError . subclass ( 'TestError' , {
3636 plugins : [ modernErrorsCli ] ,
3737 cli : { silent : true } ,
3838} )
39- error . exit ( { silent : true } )
39+ BaseError . exit ( error , { silent : true } )
4040expectAssignable < Options > ( { silent : true } )
4141expectError (
4242 ModernError . subclass ( 'TestError' , {
4343 plugins : [ modernErrorsCli ] ,
4444 cli : { silent : 'true' } ,
4545 } ) ,
4646)
47- expectError ( error . exit ( { silent : 'true' } ) )
47+ expectError ( BaseError . exit ( error , { silent : 'true' } ) )
4848expectNotAssignable < Options > ( { silent : 'true' } )
0 commit comments