Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswilddev committed Dec 7, 2023
1 parent 3162f95 commit 15e2d35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions react-native/services/SyncController/unit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ test('throws when requesting the cancellation of a paused sync controller', () =

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

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

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

const pausePromise = syncController.pause()

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

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

(logger.information as jest.Mock).mockReset()
expect(() => syncController.resume()).toThrowError('Unable to resume a pausing sync controller.')
expect(() => { syncController.resume() }).toThrowError('Unable to resume a pausing sync controller.')

let resolved = false
let rejected = false
Expand Down

0 comments on commit 15e2d35

Please sign in to comment.