Skip to content

Commit 15e2d35

Browse files
committed
Lint.
1 parent 3162f95 commit 15e2d35

File tree

1 file changed

+3
-3
lines changed
  • react-native/services/SyncController

1 file changed

+3
-3
lines changed

react-native/services/SyncController/unit.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ test('throws when requesting the cancellation of a paused sync controller', () =
236236

237237
const syncController = new SyncController(sync, logger, errorReporter)
238238

239-
expect(() => syncController.requestCancel()).toThrowError('Unable to cancel a paused sync controller.')
239+
expect(() => { syncController.requestCancel() }).toThrowError('Unable to cancel a paused sync controller.')
240240

241241
expect(sync.fileCleanUpBlockers).toEqual(1234)
242242
expect(sync.addListener).not.toHaveBeenCalled()
@@ -283,7 +283,7 @@ test('throws when requesting the cancellation of a pausing sync controller', asy
283283

284284
const pausePromise = syncController.pause()
285285

286-
expect(() => syncController.requestCancel()).toThrowError('Unable to cancel a pausing sync controller.')
286+
expect(() => { syncController.requestCancel() }).toThrowError('Unable to cancel a pausing sync controller.')
287287

288288
let resolved = false
289289
let rejected = false
@@ -2446,7 +2446,7 @@ test('throws when resuming during a pause', async () => {
24462446
const pausePromise = syncController.pause();
24472447

24482448
(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.')
24502450

24512451
let resolved = false
24522452
let rejected = false

0 commit comments

Comments
 (0)