More tests for UserInfo (#10677)
* UserInfo-test: move mocking to `beforeEach` ... so that changes to the mocks do not leak between tests * Add some more tests for UserInfo
This commit is contained in:
parent
893feed13b
commit
83f12fcba0
2 changed files with 171 additions and 93 deletions
|
@ -127,7 +127,7 @@ export function untilEmission(
|
|||
});
|
||||
}
|
||||
|
||||
export const flushPromises = async () => await new Promise((resolve) => window.setTimeout(resolve));
|
||||
export const flushPromises = async () => await new Promise<void>((resolve) => window.setTimeout(resolve));
|
||||
|
||||
// with jest's modern fake timers process.nextTick is also mocked,
|
||||
// flushing promises in the normal way then waits for some advancement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue