From 2ded0dfd78843bf508e09704dd61fc8a60f90a68 Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Mon, 23 Oct 2023 17:20:32 -0500 Subject: [PATCH] change `ContentItem` to composition+ts and try to fix jests --- .../History/Content/ContentItem.test.js | 1 + .../History/Content/ContentItem.vue | 377 +++++++++--------- .../History/Content/model/states.ts | 2 +- 3 files changed, 199 insertions(+), 181 deletions(-) diff --git a/client/src/components/History/Content/ContentItem.test.js b/client/src/components/History/Content/ContentItem.test.js index 53b16dc38d7e..a3c30af4b215 100644 --- a/client/src/components/History/Content/ContentItem.test.js +++ b/client/src/components/History/Content/ContentItem.test.js @@ -6,6 +6,7 @@ import { getLocalVue } from "tests/jest/helpers"; import ContentItem from "./ContentItem"; +jest.mock("@/schema"); jest.mock("components/History/model/queries"); jest.mock("vue-router/composables", () => ({ useRoute: jest.fn(() => ({})), diff --git a/client/src/components/History/Content/ContentItem.vue b/client/src/components/History/Content/ContentItem.vue index ee5723d9f1f5..958b220fe65d 100644 --- a/client/src/components/History/Content/ContentItem.vue +++ b/client/src/components/History/Content/ContentItem.vue @@ -1,3 +1,197 @@ + + - -