fix jest mocks

This commit is contained in:
Laila Los
2024-01-09 16:07:51 +01:00
parent 43cd19f520
commit e6c1c8fd40
3 changed files with 3 additions and 3 deletions
@@ -18,7 +18,7 @@ const mountWithProps = (props) => {
});
};
jest.mock("composables/user");
jest.mock("@/stores/userTagsStore");
const addLocalTagMock = jest.fn((tag) => tag);
useUserTagsStore.mockReturnValue({
userTags: computed(() => autocompleteTags),
@@ -17,7 +17,7 @@ const TEST_VERSIONS = [
];
const autocompleteTags = ["#named_uer_tag", "abc", "my_tag"];
jest.mock("composables/user");
jest.mock("@/stores/userTagsStore");
useUserTagsStore.mockReturnValue({
userTags: computed(() => autocompleteTags),
addLocalTag: jest.fn(),
@@ -17,7 +17,7 @@ const localVue = getLocalVue();
localVue.use(PiniaVuePlugin);
const autocompleteTags = ["#named_user_tags", "abc", "my_tag"];
jest.mock("composables/user");
jest.mock("@/stores/userTagsStore");
useUserTagsStore.mockReturnValue({
userTags: computed(() => autocompleteTags),
addLocalTag: jest.fn(),