@@ -26,7 +26,7 @@ describe('subscribeProcessExit', () => {
2626 } ) ;
2727
2828 it ( 'should install event listeners for all expected events' , ( ) => {
29- expect ( ( ) => subscribeProcessExit ( { onError, onExit } ) ) . not . toThrowError ( ) ;
29+ expect ( ( ) => subscribeProcessExit ( { onError, onExit } ) ) . not . toThrow ( ) ;
3030
3131 expect ( processOnSpy ) . toHaveBeenCalledWith (
3232 'uncaughtException' ,
@@ -43,7 +43,7 @@ describe('subscribeProcessExit', () => {
4343 } ) ;
4444
4545 it ( 'should call onError with error and kind for uncaughtException' , ( ) => {
46- expect ( ( ) => subscribeProcessExit ( { onError } ) ) . not . toThrowError ( ) ;
46+ expect ( ( ) => subscribeProcessExit ( { onError } ) ) . not . toThrow ( ) ;
4747
4848 const testError = new Error ( 'Test uncaught exception' ) ;
4949
@@ -57,7 +57,7 @@ describe('subscribeProcessExit', () => {
5757 } ) ;
5858
5959 it ( 'should call onError with reason and kind for unhandledRejection' , ( ) => {
60- expect ( ( ) => subscribeProcessExit ( { onError } ) ) . not . toThrowError ( ) ;
60+ expect ( ( ) => subscribeProcessExit ( { onError } ) ) . not . toThrow ( ) ;
6161
6262 const testReason = 'Test unhandled rejection' ;
6363
@@ -73,7 +73,7 @@ describe('subscribeProcessExit', () => {
7373 it ( 'should call onExit with correct code and reason for SIGINT' , ( ) => {
7474 expect ( ( ) =>
7575 subscribeProcessExit ( { onExit, exitOnSignal : true } ) ,
76- ) . not . toThrowError ( ) ;
76+ ) . not . toThrow ( ) ;
7777
7878 ( process as any ) . emit ( 'SIGINT' ) ;
7979
@@ -88,7 +88,7 @@ describe('subscribeProcessExit', () => {
8888 it ( 'should call onExit with correct code and reason for SIGTERM' , ( ) => {
8989 expect ( ( ) =>
9090 subscribeProcessExit ( { onExit, exitOnSignal : true } ) ,
91- ) . not . toThrowError ( ) ;
91+ ) . not . toThrow ( ) ;
9292
9393 ( process as any ) . emit ( 'SIGTERM' ) ;
9494
@@ -106,7 +106,7 @@ describe('subscribeProcessExit', () => {
106106 it ( 'should call onExit with correct code and reason for SIGQUIT' , ( ) => {
107107 expect ( ( ) =>
108108 subscribeProcessExit ( { onExit, exitOnSignal : true } ) ,
109- ) . not . toThrowError ( ) ;
109+ ) . not . toThrow ( ) ;
110110
111111 ( process as any ) . emit ( 'SIGQUIT' ) ;
112112
@@ -124,7 +124,7 @@ describe('subscribeProcessExit', () => {
124124 it ( 'should not exit process when exitOnSignal is false' , ( ) => {
125125 expect ( ( ) =>
126126 subscribeProcessExit ( { onExit, exitOnSignal : false } ) ,
127- ) . not . toThrowError ( ) ;
127+ ) . not . toThrow ( ) ;
128128
129129 ( process as any ) . emit ( 'SIGINT' ) ;
130130
@@ -137,7 +137,7 @@ describe('subscribeProcessExit', () => {
137137 } ) ;
138138
139139 it ( 'should not exit process when exitOnSignal is not set' , ( ) => {
140- expect ( ( ) => subscribeProcessExit ( { onExit } ) ) . not . toThrowError ( ) ;
140+ expect ( ( ) => subscribeProcessExit ( { onExit } ) ) . not . toThrow ( ) ;
141141
142142 ( process as any ) . emit ( 'SIGTERM' ) ;
143143
@@ -153,7 +153,7 @@ describe('subscribeProcessExit', () => {
153153 } ) ;
154154
155155 it ( 'should call onExit with exit code and reason for normal exit' , ( ) => {
156- expect ( ( ) => subscribeProcessExit ( { onExit } ) ) . not . toThrowError ( ) ;
156+ expect ( ( ) => subscribeProcessExit ( { onExit } ) ) . not . toThrow ( ) ;
157157
158158 const exitCode = 42 ;
159159 ( process as any ) . emit ( 'exit' , exitCode ) ;
@@ -166,7 +166,7 @@ describe('subscribeProcessExit', () => {
166166 it ( 'should call onExit with fatal reason when exitOnFatal is true' , ( ) => {
167167 expect ( ( ) =>
168168 subscribeProcessExit ( { onError, onExit, exitOnFatal : true } ) ,
169- ) . not . toThrowError ( ) ;
169+ ) . not . toThrow ( ) ;
170170
171171 const testError = new Error ( 'Test uncaught exception' ) ;
172172
@@ -190,7 +190,7 @@ describe('subscribeProcessExit', () => {
190190 exitOnFatal : true ,
191191 fatalExitCode : 42 ,
192192 } ) ,
193- ) . not . toThrowError ( ) ;
193+ ) . not . toThrow ( ) ;
194194
195195 const testError = new Error ( 'Test uncaught exception' ) ;
196196
@@ -209,7 +209,7 @@ describe('subscribeProcessExit', () => {
209209 it ( 'should call onExit with fatal reason for unhandledRejection when exitOnFatal is true' , ( ) => {
210210 expect ( ( ) =>
211211 subscribeProcessExit ( { onError, onExit, exitOnFatal : true } ) ,
212- ) . not . toThrowError ( ) ;
212+ ) . not . toThrow ( ) ;
213213
214214 const testReason = 'Test unhandled rejection' ;
215215
@@ -254,7 +254,7 @@ describe('subscribeProcessExit', () => {
254254 it ( 'should call onExit only once even when close is called multiple times' , ( ) => {
255255 expect ( ( ) =>
256256 subscribeProcessExit ( { onExit, exitOnSignal : true } ) ,
257- ) . not . toThrowError ( ) ;
257+ ) . not . toThrow ( ) ;
258258
259259 ( process as any ) . emit ( 'SIGINT' ) ;
260260 expect ( onExit ) . toHaveBeenCalledExactlyOnceWith ( SIGNAL_EXIT_CODES ( ) . SIGINT , {
0 commit comments