Skip to content

Commit b5a9095

Browse files
authored
test(query-core/focusManager): use 'advanceTimersByTime' for boolean focused arg test (#9317)
1 parent 917ac88 commit b5a9095

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎packages/query-core/src/__tests__/focusManager.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('focusManager', () => {
2525
expect(remove2Spy).not.toHaveBeenCalled()
2626
})
2727

28-
it('should use focused boolean arg', async () => {
28+
it('should use focused boolean arg', () => {
2929
let count = 0
3030

3131
const setup = (setFocused: (focused?: boolean) => void) => {
@@ -38,7 +38,7 @@ describe('focusManager', () => {
3838

3939
focusManager.setEventListener(setup)
4040

41-
await vi.advanceTimersByTimeAsync(20)
41+
vi.advanceTimersByTime(20)
4242
expect(count).toEqual(1)
4343
expect(focusManager.isFocused()).toBeTruthy()
4444
})

0 commit comments

Comments
 (0)