wipeLocalData test: lint-clean never-settling store
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m23s
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m23s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8fb95402f5
commit
cd30c3dc40
1 changed files with 6 additions and 1 deletions
|
|
@ -95,7 +95,12 @@ describe('wipeLocalData', () => {
|
|||
});
|
||||
it('a client store that never closes holds the wipe only for the timeout, then storage is cleared', async () => {
|
||||
const r = rig({ databases: async () => [{ name: 'a' }] });
|
||||
const mx = { clearStores: () => new Promise<void>(() => undefined) } as never;
|
||||
const mx = {
|
||||
clearStores: () =>
|
||||
new Promise<void>(() => {
|
||||
// never settles
|
||||
}),
|
||||
} as never;
|
||||
await wipeLocalData(mx, { ...r.ports, clearStoresTimeoutMs: 10 });
|
||||
expect(r.deleted).toEqual(['a']);
|
||||
expect(r.cleared()).toBe(1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue