File tree 1 file changed +3
-3
lines changed
react-native/services/SyncController 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ test('throws when requesting the cancellation of a paused sync controller', () =
236
236
237
237
const syncController = new SyncController ( sync , logger , errorReporter )
238
238
239
- expect ( ( ) => syncController . requestCancel ( ) ) . toThrowError ( 'Unable to cancel a paused sync controller.' )
239
+ expect ( ( ) => { syncController . requestCancel ( ) } ) . toThrowError ( 'Unable to cancel a paused sync controller.' )
240
240
241
241
expect ( sync . fileCleanUpBlockers ) . toEqual ( 1234 )
242
242
expect ( sync . addListener ) . not . toHaveBeenCalled ( )
@@ -283,7 +283,7 @@ test('throws when requesting the cancellation of a pausing sync controller', asy
283
283
284
284
const pausePromise = syncController . pause ( )
285
285
286
- expect ( ( ) => syncController . requestCancel ( ) ) . toThrowError ( 'Unable to cancel a pausing sync controller.' )
286
+ expect ( ( ) => { syncController . requestCancel ( ) } ) . toThrowError ( 'Unable to cancel a pausing sync controller.' )
287
287
288
288
let resolved = false
289
289
let rejected = false
@@ -2446,7 +2446,7 @@ test('throws when resuming during a pause', async () => {
2446
2446
const pausePromise = syncController . pause ( ) ;
2447
2447
2448
2448
( logger . information as jest . Mock ) . mockReset ( )
2449
- expect ( ( ) => syncController . resume ( ) ) . toThrowError ( 'Unable to resume a pausing sync controller.' )
2449
+ expect ( ( ) => { syncController . resume ( ) } ) . toThrowError ( 'Unable to resume a pausing sync controller.' )
2450
2450
2451
2451
let resolved = false
2452
2452
let rejected = false
You can’t perform that action at this time.
0 commit comments