@@ -49,7 +49,10 @@ describe('subscribeProcessExit', () => {
4949
5050 ( process as any ) . emit ( 'uncaughtException' , testError ) ;
5151
52- expect ( onError ) . toHaveBeenCalledExactlyOnceWith ( testError , 'uncaughtException' ) ;
52+ expect ( onError ) . toHaveBeenCalledExactlyOnceWith (
53+ testError ,
54+ 'uncaughtException' ,
55+ ) ;
5356 expect ( onExit ) . not . toHaveBeenCalled ( ) ;
5457 } ) ;
5558
@@ -60,7 +63,10 @@ describe('subscribeProcessExit', () => {
6063
6164 ( process as any ) . emit ( 'unhandledRejection' , testReason ) ;
6265
63- expect ( onError ) . toHaveBeenCalledExactlyOnceWith ( testReason , 'unhandledRejection' ) ;
66+ expect ( onError ) . toHaveBeenCalledExactlyOnceWith (
67+ testReason ,
68+ 'unhandledRejection' ,
69+ ) ;
6470 expect ( onExit ) . not . toHaveBeenCalled ( ) ;
6571 } ) ;
6672
@@ -86,10 +92,13 @@ describe('subscribeProcessExit', () => {
8692
8793 ( process as any ) . emit ( 'SIGTERM' ) ;
8894
89- expect ( onExit ) . toHaveBeenCalledExactlyOnceWith ( SIGNAL_EXIT_CODES ( ) . SIGTERM , {
90- kind : 'signal' ,
91- signal : 'SIGTERM' ,
92- } ) ;
95+ expect ( onExit ) . toHaveBeenCalledExactlyOnceWith (
96+ SIGNAL_EXIT_CODES ( ) . SIGTERM ,
97+ {
98+ kind : 'signal' ,
99+ signal : 'SIGTERM' ,
100+ } ,
101+ ) ;
93102 expect ( onError ) . not . toHaveBeenCalled ( ) ;
94103 expect ( processExitSpy ) . toHaveBeenCalledWith ( SIGNAL_EXIT_CODES ( ) . SIGTERM ) ;
95104 } ) ;
@@ -101,10 +110,13 @@ describe('subscribeProcessExit', () => {
101110
102111 ( process as any ) . emit ( 'SIGQUIT' ) ;
103112
104- expect ( onExit ) . toHaveBeenCalledExactlyOnceWith ( SIGNAL_EXIT_CODES ( ) . SIGQUIT , {
105- kind : 'signal' ,
106- signal : 'SIGQUIT' ,
107- } ) ;
113+ expect ( onExit ) . toHaveBeenCalledExactlyOnceWith (
114+ SIGNAL_EXIT_CODES ( ) . SIGQUIT ,
115+ {
116+ kind : 'signal' ,
117+ signal : 'SIGQUIT' ,
118+ } ,
119+ ) ;
108120 expect ( onError ) . not . toHaveBeenCalled ( ) ;
109121 expect ( processExitSpy ) . toHaveBeenCalledWith ( SIGNAL_EXIT_CODES ( ) . SIGQUIT ) ;
110122 } ) ;
@@ -129,10 +141,13 @@ describe('subscribeProcessExit', () => {
129141
130142 ( process as any ) . emit ( 'SIGTERM' ) ;
131143
132- expect ( onExit ) . toHaveBeenCalledExactlyOnceWith ( SIGNAL_EXIT_CODES ( ) . SIGTERM , {
133- kind : 'signal' ,
134- signal : 'SIGTERM' ,
135- } ) ;
144+ expect ( onExit ) . toHaveBeenCalledExactlyOnceWith (
145+ SIGNAL_EXIT_CODES ( ) . SIGTERM ,
146+ {
147+ kind : 'signal' ,
148+ signal : 'SIGTERM' ,
149+ } ,
150+ ) ;
136151 expect ( onError ) . not . toHaveBeenCalled ( ) ;
137152 expect ( processExitSpy ) . not . toHaveBeenCalled ( ) ;
138153 } ) ;
@@ -157,7 +172,10 @@ describe('subscribeProcessExit', () => {
157172
158173 ( process as any ) . emit ( 'uncaughtException' , testError ) ;
159174
160- expect ( onError ) . toHaveBeenCalledExactlyOnceWith ( testError , 'uncaughtException' ) ;
175+ expect ( onError ) . toHaveBeenCalledExactlyOnceWith (
176+ testError ,
177+ 'uncaughtException' ,
178+ ) ;
161179 expect ( onExit ) . toHaveBeenCalledExactlyOnceWith ( 1 , {
162180 kind : 'fatal' ,
163181 fatal : 'uncaughtException' ,
@@ -178,7 +196,10 @@ describe('subscribeProcessExit', () => {
178196
179197 ( process as any ) . emit ( 'uncaughtException' , testError ) ;
180198
181- expect ( onError ) . toHaveBeenCalledExactlyOnceWith ( testError , 'uncaughtException' ) ;
199+ expect ( onError ) . toHaveBeenCalledExactlyOnceWith (
200+ testError ,
201+ 'uncaughtException' ,
202+ ) ;
182203 expect ( onExit ) . toHaveBeenCalledExactlyOnceWith ( 42 , {
183204 kind : 'fatal' ,
184205 fatal : 'uncaughtException' ,
@@ -194,7 +215,10 @@ describe('subscribeProcessExit', () => {
194215
195216 ( process as any ) . emit ( 'unhandledRejection' , testReason ) ;
196217
197- expect ( onError ) . toHaveBeenCalledExactlyOnceWith ( testReason , 'unhandledRejection' ) ;
218+ expect ( onError ) . toHaveBeenCalledExactlyOnceWith (
219+ testReason ,
220+ 'unhandledRejection' ,
221+ ) ;
198222 expect ( onExit ) . toHaveBeenCalledExactlyOnceWith ( 1 , {
199223 kind : 'fatal' ,
200224 fatal : 'unhandledRejection' ,
0 commit comments