From b8d5e4b132d59dc9fae6fea27aada9c5bc4c27e0 Mon Sep 17 00:00:00 2001 From: Kara Brightwell Date: Tue, 17 Jan 2023 16:02:47 +0000 Subject: [PATCH] test: import cp-content-pipeline-ui to use RichText for tests --- components/x-live-blog-post/package.json | 1 + .../x-live-blog-post/src/__tests__/LiveBlogPost.test.jsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/x-live-blog-post/package.json b/components/x-live-blog-post/package.json index 9ecd2439e..e01550467 100644 --- a/components/x-live-blog-post/package.json +++ b/components/x-live-blog-post/package.json @@ -20,6 +20,7 @@ "@financial-times/x-engine": "file:../../packages/x-engine" }, "devDependencies": { + "@financial-times/cp-content-pipeline-ui": "^0.4.0", "@financial-times/o-colors": "^6.4.2", "@financial-times/o-spacing": "^3.2.1", "@financial-times/o-typography": "^7.2.2", diff --git a/components/x-live-blog-post/src/__tests__/LiveBlogPost.test.jsx b/components/x-live-blog-post/src/__tests__/LiveBlogPost.test.jsx index 40700f084..7cbb70324 100644 --- a/components/x-live-blog-post/src/__tests__/LiveBlogPost.test.jsx +++ b/components/x-live-blog-post/src/__tests__/LiveBlogPost.test.jsx @@ -1,5 +1,6 @@ const { h } = require('@financial-times/x-engine') const { mount } = require('@financial-times/x-test-utils/enzyme') +const { RichText } = require('@financial-times/cp-content-pipeline-ui') import { LiveBlogPost } from '../LiveBlogPost' @@ -95,7 +96,8 @@ const regularPostContentPipeline = { }, publishedDate: new Date().toISOString(), articleUrl: 'Https://www.ft.com', - showShareButtons: true + showShareButtons: true, + renderRichText: RichText } const backToTopPostSpark = {