Merge pull request #7593 from overleaf/ta-settings-migration

[SettingsPage] Integration Branch

GitOrigin-RevId: 5a3c26b2a02d716c4ae3981e3f08b811ae307725
This commit is contained in:
Timothée Alby
2022-04-25 08:05:12 +00:00
committed by Copybot
parent 35480a3c7d
commit cf2dfc6bf1
83 changed files with 3795 additions and 399 deletions
@@ -91,6 +91,12 @@ describe('useAsync', function () {
...resolvedState,
data: resolvedValue,
})
act(() => {
result.current.reset()
})
expect(result.current).to.include(defaultState)
})
it('calling `runAsync` with a promise which rejects', async function () {
@@ -101,7 +107,7 @@ describe('useAsync', function () {
let p: Promise<unknown>
act(() => {
p = result.current.runAsync(promise)
p = result.current.runAsync(promise).catch(() => {})
})
expect(result.current).to.include(pendingState)