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 = {