mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 07:13:51 +02:00
refactor store
This commit is contained in:
@@ -84,6 +84,12 @@ vi.mock('../../../../service/request', () => ({
|
||||
failedGetRequests: new Map()
|
||||
}));
|
||||
|
||||
import * as userCoordinatorModule from '../../../../coordinators/userCoordinator';
|
||||
vi.mock('../../../../coordinators/userCoordinator', async (importOriginal) => {
|
||||
const actual = await importOriginal();
|
||||
return { ...actual, showUserDialog: vi.fn() };
|
||||
});
|
||||
|
||||
import UserDialogMutualFriendsTab from '../UserDialogMutualFriendsTab.vue';
|
||||
import { useUserStore } from '../../../../stores';
|
||||
import { userDialogMutualFriendSortingOptions } from '../../../../shared/constants';
|
||||
@@ -219,7 +225,7 @@ describe('UserDialogMutualFriendsTab.vue', () => {
|
||||
};
|
||||
userStore.currentUser = { id: 'usr_me' };
|
||||
const showUserDialogSpy = vi
|
||||
.spyOn(userStore, 'showUserDialog')
|
||||
.spyOn(userCoordinatorModule, 'showUserDialog')
|
||||
.mockImplementation(() => {});
|
||||
|
||||
const wrapper = mount(UserDialogMutualFriendsTab, {
|
||||
|
||||
Reference in New Issue
Block a user