Skip to content

Commit

Permalink
fix mock in Attributes test
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectronicBlueberry committed Feb 14, 2024
1 parent d0d0a3c commit bb50bd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/components/Workflow/Editor/Attributes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ const autocompleteTags = ["#named_uer_tag", "abc", "my_tag"];
jest.mock("@/stores/userTagsStore");
useUserTagsStore.mockReturnValue({
userTags: computed(() => autocompleteTags),
addLocalTag: jest.fn(),
onNewTagSeen: jest.fn(),
onTagUsed: jest.fn(),
onMultipleNewTagsSeen: jest.fn(),
});

describe("Attributes", () => {
it("test attributes", async () => {
const localVue = createLocalVue();
Expand Down

0 comments on commit bb50bd2

Please sign in to comment.