fix tests

This commit is contained in:
Henry Jameson 2026-08-26 15:15:35 +03:00
commit 5ff886ba94

View file

@ -1124,6 +1124,12 @@ describe('Users store', () => {
},
)
vi.spyOn(useNotificationsStore(), 'wipeStatuses').mockImplementation(
async () => {
/* no-op */
},
)
const store = useUsersStore()
const { storeAction, apiUrl } = actionKeys(action)
await store[storeAction](userId)
@ -1155,6 +1161,12 @@ describe('Users store', () => {
},
)
vi.spyOn(useNotificationsStore(), 'wipeStatuses').mockImplementation(
async () => {
/* no-op */
},
)
const store = useUsersStore()
const { storeAction, apiUrl } = actionKeys(action)
await store[storeAction](userId, 20)