mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
fix jest mocks
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user