mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #7593 from overleaf/ta-settings-migration
[SettingsPage] Integration Branch GitOrigin-RevId: 5a3c26b2a02d716c4ae3981e3f08b811ae307725
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user