useConfig
1 parent bd3aa23 commit acb08ebCopy full SHA for acb08eb
2 files changed
client/src/components/Citation/services.test.ts
@@ -13,6 +13,14 @@ const mockCitationResponseJson = [
13
},
14
];
15
16
+jest.mock("@/composables/config", () => ({
17
+ useConfig: jest.fn(() => ({
18
+ config: {
19
+ value: {},
20
+ },
21
+ })),
22
+}));
23
+
24
describe("Citation", () => {
25
let axiosMock: MockAdapter;
26
client/src/components/Tool/ToolFooter.test.js
@@ -11,6 +11,14 @@ const localVue = getLocalVue(true);
11
const citationsA = [{ format: "bibtex", content: "@misc{entry_a, year = {1111}}" }];
12
const citationsB = [{ format: "bibtex", content: "@misc{entry_b, year = {2222}}" }];
describe("ToolFooter", () => {
let wrapper;
let axiosMock;
0 commit comments