Skip to content

Commit

Permalink
test: import cp-content-pipeline-ui to use RichText for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
apaleslimghost committed Jan 17, 2023
1 parent 5f78a36 commit b8d5e4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/x-live-blog-post/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -95,7 +96,8 @@ const regularPostContentPipeline = {
},
publishedDate: new Date().toISOString(),
articleUrl: 'Https://www.ft.com',
showShareButtons: true
showShareButtons: true,
renderRichText: RichText
}

const backToTopPostSpark = {
Expand Down

0 comments on commit b8d5e4b

Please sign in to comment.