fix tests
This commit is contained in:
parent
c64f97ca5e
commit
5ff886ba94
1 changed files with 12 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue