@newskit-render/feed 1.8.5 → 1.8.6-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/cjs/config/index.d.ts +1 -0
- package/dist/cjs/config/index.js +9 -0
- package/dist/cjs/config/index.js.map +1 -0
- package/dist/cjs/helpers/client.d.ts +2 -0
- package/dist/cjs/helpers/client.js +35 -0
- package/dist/cjs/helpers/client.js.map +1 -0
- package/dist/cjs/helpers/createSitemap/buildSiteMapImages.d.ts +2 -2
- package/dist/cjs/helpers/createSitemap/buildSiteMapImages.js +2 -2
- package/dist/cjs/helpers/createSitemap/buildSiteMapImages.js.map +1 -1
- package/dist/cjs/helpers/createSitemap/buildSiteMapVideos.d.ts +2 -10
- package/dist/cjs/helpers/createSitemap/buildSiteMapVideos.js +8 -5
- package/dist/cjs/helpers/createSitemap/buildSiteMapVideos.js.map +1 -1
- package/dist/cjs/helpers/createSitemap/createArticleSitemap.d.ts +2 -1
- package/dist/cjs/helpers/createSitemap/createArticleSitemap.js +23 -14
- package/dist/cjs/helpers/createSitemap/createArticleSitemap.js.map +1 -1
- package/dist/cjs/helpers/createSitemap/createPagesSitemap.d.ts +2 -3
- package/dist/cjs/helpers/createSitemap/createPagesSitemap.js +14 -15
- package/dist/cjs/helpers/createSitemap/createPagesSitemap.js.map +1 -1
- package/dist/cjs/helpers/createSitemap/getCategorySlug.d.ts +2 -2
- package/dist/cjs/helpers/createSitemap/getCategorySlug.js +2 -1
- package/dist/cjs/helpers/createSitemap/getCategorySlug.js.map +1 -1
- package/dist/cjs/helpers/queryArticleList.d.ts +4 -3
- package/dist/cjs/helpers/queryArticleList.js +28 -39
- package/dist/cjs/helpers/queryArticleList.js.map +1 -1
- package/dist/cjs/helpers/queryPages.d.ts +3 -3
- package/dist/cjs/helpers/queryPages.js +35 -33
- package/dist/cjs/helpers/queryPages.js.map +1 -1
- package/dist/cjs/helpers/types.d.ts +11 -35
- package/dist/cjs/helpers/types.js.map +1 -1
- package/dist/cjs/rss/RSSFeedResolver.js +3 -5
- package/dist/cjs/rss/RSSFeedResolver.js.map +1 -1
- package/dist/cjs/rss/__tests__/mocks.d.ts +118 -194
- package/dist/cjs/rss/__tests__/mocks.js +408 -212
- package/dist/cjs/rss/__tests__/mocks.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createBlockElements.d.ts +1 -0
- package/dist/cjs/rss/contentEncodedUtils/createBlockElements.js +6 -4
- package/dist/cjs/rss/contentEncodedUtils/createBlockElements.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createImage.d.ts +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createImage.js +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createImage.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createItems.js +7 -7
- package/dist/cjs/rss/contentEncodedUtils/createItems.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createParagraph.js +13 -8
- package/dist/cjs/rss/contentEncodedUtils/createParagraph.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createRSSFeed.js +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createRSSFeed.js.map +1 -1
- package/dist/cjs/rss/contentEncodedUtils/createSummary.d.ts +2 -2
- package/dist/cjs/rss/contentEncodedUtils/createSummary.js +5 -7
- package/dist/cjs/rss/contentEncodedUtils/createSummary.js.map +1 -1
- package/dist/cjs/rss/helpers/articleHelper.d.ts +1 -1
- package/dist/cjs/rss/helpers/articleHelper.js +12 -13
- package/dist/cjs/rss/helpers/articleHelper.js.map +1 -1
- package/dist/cjs/rss/helpers/buildBodyDataTypesMap.js +12 -6
- package/dist/cjs/rss/helpers/buildBodyDataTypesMap.js.map +1 -1
- package/dist/cjs/rss/helpers/buildLists.js +4 -2
- package/dist/cjs/rss/helpers/buildLists.js.map +1 -1
- package/dist/cjs/rss/queries/getArticleList.js +1 -1
- package/dist/cjs/rss/queries/getArticleList.js.map +1 -1
- package/dist/cjs/rss/types.d.ts +87 -38
- package/dist/cjs/rss/types.js +1 -0
- package/dist/cjs/rss/types.js.map +1 -1
- package/dist/cjs/sitemap/__tests__/mocks.d.ts +5 -4
- package/dist/cjs/sitemap/__tests__/mocks.js +94 -56
- package/dist/cjs/sitemap/__tests__/mocks.js.map +1 -1
- package/dist/cjs/sitemap/queries/getArticleList.js +1 -1
- package/dist/cjs/sitemap/queries/getArticleList.js.map +1 -1
- package/dist/cjs/sitemap/queries/getCompetitions.d.ts +1 -1
- package/dist/cjs/sitemap/queries/getCompetitions.js +2 -2
- package/dist/cjs/sitemap/queries/getCompetitions.js.map +1 -1
- package/dist/cjs/sitemap/queries/getPages.d.ts +1 -1
- package/dist/cjs/sitemap/queries/getPages.js +2 -2
- package/dist/cjs/sitemap/queries/getPages.js.map +1 -1
- package/dist/cjs/sitemap/resolvers/genericSitemapResolver.js +12 -13
- package/dist/cjs/sitemap/resolvers/genericSitemapResolver.js.map +1 -1
- package/dist/cjs/sitemap/resolvers/newsSitemapResolver.js +3 -5
- package/dist/cjs/sitemap/resolvers/newsSitemapResolver.js.map +1 -1
- package/dist/esm/config/index.d.ts +1 -0
- package/dist/esm/config/index.js +6 -0
- package/dist/esm/config/index.js.map +1 -0
- package/dist/esm/helpers/client.d.ts +2 -0
- package/dist/esm/helpers/client.js +32 -0
- package/dist/esm/helpers/client.js.map +1 -0
- package/dist/esm/helpers/createSitemap/buildSiteMapImages.d.ts +2 -2
- package/dist/esm/helpers/createSitemap/buildSiteMapImages.js +2 -2
- package/dist/esm/helpers/createSitemap/buildSiteMapImages.js.map +1 -1
- package/dist/esm/helpers/createSitemap/buildSiteMapVideos.d.ts +2 -10
- package/dist/esm/helpers/createSitemap/buildSiteMapVideos.js +8 -5
- package/dist/esm/helpers/createSitemap/buildSiteMapVideos.js.map +1 -1
- package/dist/esm/helpers/createSitemap/createArticleSitemap.d.ts +2 -1
- package/dist/esm/helpers/createSitemap/createArticleSitemap.js +23 -14
- package/dist/esm/helpers/createSitemap/createArticleSitemap.js.map +1 -1
- package/dist/esm/helpers/createSitemap/createPagesSitemap.d.ts +2 -3
- package/dist/esm/helpers/createSitemap/createPagesSitemap.js +14 -15
- package/dist/esm/helpers/createSitemap/createPagesSitemap.js.map +1 -1
- package/dist/esm/helpers/createSitemap/getCategorySlug.d.ts +2 -2
- package/dist/esm/helpers/createSitemap/getCategorySlug.js +2 -1
- package/dist/esm/helpers/createSitemap/getCategorySlug.js.map +1 -1
- package/dist/esm/helpers/queryArticleList.d.ts +4 -3
- package/dist/esm/helpers/queryArticleList.js +28 -39
- package/dist/esm/helpers/queryArticleList.js.map +1 -1
- package/dist/esm/helpers/queryPages.d.ts +3 -3
- package/dist/esm/helpers/queryPages.js +36 -34
- package/dist/esm/helpers/queryPages.js.map +1 -1
- package/dist/esm/helpers/types.d.ts +11 -35
- package/dist/esm/helpers/types.js.map +1 -1
- package/dist/esm/rss/RSSFeedResolver.js +4 -6
- package/dist/esm/rss/RSSFeedResolver.js.map +1 -1
- package/dist/esm/rss/__tests__/mocks.d.ts +118 -194
- package/dist/esm/rss/__tests__/mocks.js +408 -212
- package/dist/esm/rss/__tests__/mocks.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createBlockElements.d.ts +1 -0
- package/dist/esm/rss/contentEncodedUtils/createBlockElements.js +4 -3
- package/dist/esm/rss/contentEncodedUtils/createBlockElements.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createImage.d.ts +1 -1
- package/dist/esm/rss/contentEncodedUtils/createImage.js +1 -1
- package/dist/esm/rss/contentEncodedUtils/createImage.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createItems.js +7 -7
- package/dist/esm/rss/contentEncodedUtils/createItems.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createParagraph.js +14 -9
- package/dist/esm/rss/contentEncodedUtils/createParagraph.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createRSSFeed.js +1 -1
- package/dist/esm/rss/contentEncodedUtils/createRSSFeed.js.map +1 -1
- package/dist/esm/rss/contentEncodedUtils/createSummary.d.ts +2 -2
- package/dist/esm/rss/contentEncodedUtils/createSummary.js +5 -7
- package/dist/esm/rss/contentEncodedUtils/createSummary.js.map +1 -1
- package/dist/esm/rss/helpers/articleHelper.d.ts +1 -1
- package/dist/esm/rss/helpers/articleHelper.js +12 -13
- package/dist/esm/rss/helpers/articleHelper.js.map +1 -1
- package/dist/esm/rss/helpers/buildBodyDataTypesMap.js +12 -6
- package/dist/esm/rss/helpers/buildBodyDataTypesMap.js.map +1 -1
- package/dist/esm/rss/helpers/buildLists.js +5 -3
- package/dist/esm/rss/helpers/buildLists.js.map +1 -1
- package/dist/esm/rss/queries/getArticleList.js +1 -1
- package/dist/esm/rss/queries/getArticleList.js.map +1 -1
- package/dist/esm/rss/types.d.ts +87 -38
- package/dist/esm/rss/types.js +1 -0
- package/dist/esm/rss/types.js.map +1 -1
- package/dist/esm/sitemap/__tests__/mocks.d.ts +5 -4
- package/dist/esm/sitemap/__tests__/mocks.js +94 -56
- package/dist/esm/sitemap/__tests__/mocks.js.map +1 -1
- package/dist/esm/sitemap/queries/getArticleList.js +1 -1
- package/dist/esm/sitemap/queries/getArticleList.js.map +1 -1
- package/dist/esm/sitemap/queries/getCompetitions.d.ts +1 -1
- package/dist/esm/sitemap/queries/getCompetitions.js +1 -1
- package/dist/esm/sitemap/queries/getCompetitions.js.map +1 -1
- package/dist/esm/sitemap/queries/getPages.d.ts +1 -1
- package/dist/esm/sitemap/queries/getPages.js +1 -1
- package/dist/esm/sitemap/queries/getPages.js.map +1 -1
- package/dist/esm/sitemap/resolvers/genericSitemapResolver.js +13 -14
- package/dist/esm/sitemap/resolvers/genericSitemapResolver.js.map +1 -1
- package/dist/esm/sitemap/resolvers/newsSitemapResolver.js +3 -5
- package/dist/esm/sitemap/resolvers/newsSitemapResolver.js.map +1 -1
- package/package.json +6 -2
|
@@ -21,301 +21,486 @@ exports.titeAttributesdefaultMock = {
|
|
|
21
21
|
};
|
|
22
22
|
exports.articleListMock = [
|
|
23
23
|
{
|
|
24
|
-
categories: [{ slug: 'entertainment' }],
|
|
25
|
-
bylines: [{ name: 'Jim Morrison' }],
|
|
26
|
-
summary: null,
|
|
27
|
-
publisher: 'VIRGIN',
|
|
28
|
-
publishedDateTime: '2022-04-04T08:50:29.000Z',
|
|
29
|
-
updatedDateTime: '2022-04-12T11:17:09.000Z',
|
|
30
|
-
headline: 'It has survived not only five centuries',
|
|
31
24
|
id: '32596',
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
text: 'Some test description',
|
|
41
|
-
},
|
|
42
|
-
],
|
|
25
|
+
type: 'article',
|
|
26
|
+
attributes: {
|
|
27
|
+
headline: 'It has survived not only five centuries',
|
|
28
|
+
slug: 'it-has-survived',
|
|
29
|
+
byline: [{ name: 'Jim Morrison' }],
|
|
30
|
+
datePublished: '2022-04-04T08:50:29Z',
|
|
31
|
+
dateUpdated: '2022-04-12T11:17:09Z',
|
|
32
|
+
body: [],
|
|
43
33
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
34
|
+
relationships: {
|
|
35
|
+
categories: {
|
|
36
|
+
data: [
|
|
37
|
+
{
|
|
38
|
+
id: 'entertainment id',
|
|
39
|
+
type: 'category',
|
|
40
|
+
category: {
|
|
41
|
+
data: {
|
|
42
|
+
attributes: {
|
|
43
|
+
title: 'entertainment title',
|
|
44
|
+
slug: 'entertainment',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
60
51
|
},
|
|
61
|
-
publisher: 'VIRGIN',
|
|
62
|
-
publishedDateTime: '2022-03-25T23:59:00.000Z',
|
|
63
|
-
updatedDateTime: '2022-03-30T10:25:09.000Z',
|
|
64
|
-
headline: 'test publish article after fix deployed',
|
|
65
|
-
id: '32579',
|
|
66
|
-
body: [],
|
|
67
52
|
},
|
|
68
53
|
{
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
54
|
+
id: '32594',
|
|
55
|
+
type: 'article',
|
|
56
|
+
attributes: {
|
|
57
|
+
headline: 'Testing Image Credits',
|
|
58
|
+
slug: 'testing',
|
|
59
|
+
byline: [],
|
|
60
|
+
datePublished: '2022-04-04T08:31:44Z',
|
|
61
|
+
dateUpdated: '2022-01-12T01:17:09Z',
|
|
62
|
+
body: [],
|
|
77
63
|
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
id: '32591',
|
|
83
|
-
body: [],
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
categories: [],
|
|
87
|
-
bylines: [],
|
|
88
|
-
summary: {
|
|
89
|
-
children: [
|
|
90
|
-
{
|
|
91
|
-
text: 'Some test description 4',
|
|
92
|
-
},
|
|
93
|
-
],
|
|
64
|
+
relationships: {
|
|
65
|
+
categories: {
|
|
66
|
+
data: [],
|
|
67
|
+
},
|
|
94
68
|
},
|
|
95
|
-
publisher: 'VIRGIN',
|
|
96
|
-
updatedDateTime: '2022-01-12T01:17:09.000Z',
|
|
97
|
-
publishedDateTime: '2022-04-04T08:31:44.000Z',
|
|
98
|
-
headline: 'Testing Empty Bylines Array',
|
|
99
|
-
id: '32598',
|
|
100
|
-
body: [],
|
|
101
69
|
},
|
|
102
|
-
];
|
|
103
|
-
exports.rssMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>".concat(exports.titeAttributesMock.title, "</title>\n <atom:link href=\"").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <description>").concat(exports.titeAttributesMock.description, "</description>\n <lastBuildDate>").concat(exports.lastBuildDateMock, "</lastBuildDate>\n <pubDate>").concat(exports.updatedDateTimeMock, "</pubDate>\n <language>").concat(exports.titeAttributesMock.language, "</language>\n <sy:updatePeriod>").concat(exports.titeAttributesMock.updatePeriod, "</sy:updatePeriod>\n <sy:updateFrequency>").concat(exports.titeAttributesMock.updateFrequency, "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>").concat(exports.domainMock).concat(exports.titeAttributesMock.logoUrl, "</url>\n <title>").concat(exports.titeAttributesMock.title, "</title>\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>It has survived not only five centuries</title>\n <link>https://demo.com/entertainment/32596/it-has-survived-not-only-five-centuries</link>\n <pubDate>Mon, 04 Apr 2022 08:50:29 GMT</pubDate>\n <dc:creator><![CDATA[Jim Morrison]]></dc:creator>\n <category><![CDATA[entertainment]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32596 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Testing Image Credits</title>\n <link>https://demo.com/uncategorized/32594/testing-image-credits</link>\n <pubDate>Mon, 04 Apr 2022 08:31:44 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[Some test description]]></description>\n <guid isPermaLink=\"false\">Post 32594 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>test publish article after fix deployed</title>\n <link>https://demo.com/tv-film/32579/test-publish-article-after-fix-deployed</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[Some test description 2]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Another Test Article</title>\n <link>https://demo.com/uncategorized/32591/another-test-article</link>\n <pubDate>Fri, 25 Mar 2022 22:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[Some test description 3]]></description>\n <guid isPermaLink=\"false\">Post 32591 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Testing Empty Bylines Array</title>\n <link>https://demo.com/uncategorized/32598/testing-empty-bylines-array</link>\n <pubDate>Mon, 04 Apr 2022 08:31:44 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[Some test description 4]]></description>\n <guid isPermaLink=\"false\">Post 32598 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n");
|
|
104
|
-
exports.articleListWithBodyMock = [
|
|
105
70
|
{
|
|
106
|
-
categories: [{ slug: 'tv-film' }, { slug: 'entertainment' }],
|
|
107
|
-
bylines: [{ name: 'Janis Joplin' }],
|
|
108
|
-
summary: null,
|
|
109
|
-
publisher: 'VIRGIN',
|
|
110
|
-
publishedDateTime: '2022-03-25T23:59:00.000Z',
|
|
111
|
-
updatedDateTime: '2022-04-12T11:17:09.000Z',
|
|
112
|
-
headline: 'test publish article after fix deployed',
|
|
113
71
|
id: '32579',
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
72
|
+
type: 'article',
|
|
73
|
+
attributes: {
|
|
74
|
+
headline: 'test publish article after fix deployed slug',
|
|
75
|
+
slug: 'test-publish-article',
|
|
76
|
+
byline: [{ name: 'Janis Joplin' }],
|
|
77
|
+
datePublished: '2022-03-25T23:59:00Z',
|
|
78
|
+
dateUpdated: '2022-03-30T10:25:09Z',
|
|
79
|
+
body: [],
|
|
80
|
+
},
|
|
81
|
+
relationships: {
|
|
82
|
+
categories: {
|
|
83
|
+
data: [
|
|
118
84
|
{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
85
|
+
id: 'tv film id',
|
|
86
|
+
type: 'category',
|
|
87
|
+
category: {
|
|
88
|
+
data: {
|
|
89
|
+
attributes: {
|
|
90
|
+
title: 'tv film title',
|
|
91
|
+
slug: 'tv-film',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
125
95
|
},
|
|
126
96
|
{
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
97
|
+
id: 'entertainment id',
|
|
98
|
+
type: 'category',
|
|
99
|
+
category: {
|
|
100
|
+
data: {
|
|
101
|
+
attributes: {
|
|
102
|
+
title: 'entertainment title',
|
|
103
|
+
slug: 'entertainment',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
133
107
|
},
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
id: '32580',
|
|
114
|
+
type: 'article',
|
|
115
|
+
attributes: {
|
|
116
|
+
headline: 'test publish article after fix deployed headline',
|
|
117
|
+
slug: '',
|
|
118
|
+
byline: [{ name: 'Janis Joplin' }],
|
|
119
|
+
datePublished: '2022-03-25T23:59:00Z',
|
|
120
|
+
dateUpdated: '2022-03-30T10:25:09Z',
|
|
121
|
+
body: [],
|
|
122
|
+
},
|
|
123
|
+
relationships: {
|
|
124
|
+
categories: {
|
|
125
|
+
data: [
|
|
134
126
|
{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
127
|
+
id: 'tv film id',
|
|
128
|
+
type: 'category',
|
|
129
|
+
category: {
|
|
130
|
+
data: {
|
|
131
|
+
attributes: {
|
|
132
|
+
title: 'tv film title',
|
|
133
|
+
slug: 'tv-film',
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
141
137
|
},
|
|
142
138
|
{
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
139
|
+
id: 'entertainment id',
|
|
140
|
+
type: 'category',
|
|
141
|
+
category: {
|
|
142
|
+
data: {
|
|
143
|
+
attributes: {
|
|
144
|
+
title: 'entertainment title',
|
|
145
|
+
slug: 'entertainment',
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
149
|
},
|
|
150
|
+
],
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
id: '32591',
|
|
156
|
+
type: 'article',
|
|
157
|
+
attributes: {
|
|
158
|
+
headline: 'Another Test Article',
|
|
159
|
+
slug: 'another-test',
|
|
160
|
+
byline: [],
|
|
161
|
+
datePublished: '2022-03-25T22:59:00Z',
|
|
162
|
+
dateUpdated: '2022-03-28T12:15:09Z',
|
|
163
|
+
body: [],
|
|
164
|
+
},
|
|
165
|
+
relationships: {
|
|
166
|
+
categories: {
|
|
167
|
+
data: [
|
|
150
168
|
{
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
169
|
+
id: 'test id',
|
|
170
|
+
type: 'category',
|
|
171
|
+
category: {
|
|
172
|
+
data: {
|
|
173
|
+
attributes: {
|
|
174
|
+
title: 'test title',
|
|
175
|
+
slug: 'test',
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
},
|
|
157
179
|
},
|
|
158
180
|
],
|
|
159
181
|
},
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
id: '32598',
|
|
186
|
+
type: 'article',
|
|
187
|
+
attributes: {
|
|
188
|
+
headline: 'Testing Empty Bylines Array',
|
|
189
|
+
slug: 'testing-empty-bylines',
|
|
190
|
+
byline: [],
|
|
191
|
+
datePublished: '2022-04-04T08:31:44Z',
|
|
192
|
+
dateUpdated: '2022-01-12T01:17:09Z',
|
|
193
|
+
body: [],
|
|
194
|
+
},
|
|
195
|
+
relationships: {
|
|
196
|
+
categories: {
|
|
197
|
+
data: [],
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
];
|
|
202
|
+
exports.rssMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>".concat(exports.titeAttributesMock.title, "</title>\n <atom:link href=\"").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <description>").concat(exports.titeAttributesMock.description, "</description>\n <lastBuildDate>").concat(exports.lastBuildDateMock, "</lastBuildDate>\n <pubDate>").concat(exports.updatedDateTimeMock, "</pubDate>\n <language>").concat(exports.titeAttributesMock.language, "</language>\n <sy:updatePeriod>").concat(exports.titeAttributesMock.updatePeriod, "</sy:updatePeriod>\n <sy:updateFrequency>").concat(exports.titeAttributesMock.updateFrequency, "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>").concat(exports.domainMock).concat(exports.titeAttributesMock.logoUrl, "</url>\n <title>").concat(exports.titeAttributesMock.title, "</title>\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>It has survived not only five centuries</title>\n <link>https://demo.com/entertainment/32596/it-has-survived</link>\n <pubDate>Mon, 04 Apr 2022 08:50:29 GMT</pubDate>\n <dc:creator><![CDATA[Jim Morrison]]></dc:creator>\n <category><![CDATA[entertainment]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32596 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Testing Image Credits</title>\n <link>https://demo.com/uncategorized/32594/testing</link>\n <pubDate>Mon, 04 Apr 2022 08:31:44 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32594 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>test publish article after fix deployed slug</title>\n <link>https://demo.com/tv-film/32579/test-publish-article</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>test publish article after fix deployed headline</title>\n <link>https://demo.com/tv-film/32580/test-publish-article-after-fix-deployed-headline</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32580 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Another Test Article</title>\n <link>https://demo.com/test/32591/another-test</link>\n <pubDate>Fri, 25 Mar 2022 22:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[test]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32591 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n <item>\n <title>Testing Empty Bylines Array</title>\n <link>https://demo.com/uncategorized/32598/testing-empty-bylines</link>\n <pubDate>Mon, 04 Apr 2022 08:31:44 GMT</pubDate>\n <dc:creator><![CDATA[Demo Site]]></dc:creator>\n <category><![CDATA[uncategorized]]></category>\n <description><![CDATA[]]></description>\n <guid isPermaLink=\"false\">Post 32598 at Demo Site</guid>\n <content:encoded><![CDATA[]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n");
|
|
203
|
+
exports.articleListWithBodyMock = [
|
|
204
|
+
{
|
|
205
|
+
id: '32579',
|
|
206
|
+
type: 'article',
|
|
207
|
+
attributes: {
|
|
208
|
+
headline: 'test publish article after fix deployed',
|
|
209
|
+
slug: 'test-publish-article',
|
|
210
|
+
byline: [{ name: 'Janis Joplin' }],
|
|
211
|
+
datePublished: '2022-03-25T23:59:00Z',
|
|
212
|
+
dateUpdated: '2022-04-12T11:17:09Z',
|
|
213
|
+
body: [
|
|
214
|
+
{
|
|
215
|
+
type: 'paragraph',
|
|
216
|
+
children: [
|
|
217
|
+
{
|
|
218
|
+
type: 'text',
|
|
219
|
+
attributes: {
|
|
220
|
+
bold: true,
|
|
221
|
+
italic: false,
|
|
222
|
+
underline: false,
|
|
223
|
+
text: 'Bold',
|
|
224
|
+
monospace: false,
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
type: 'text',
|
|
229
|
+
attributes: {
|
|
230
|
+
bold: false,
|
|
231
|
+
italic: true,
|
|
232
|
+
underline: false,
|
|
233
|
+
text: 'Italic',
|
|
234
|
+
monospace: false,
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
type: 'text',
|
|
239
|
+
attributes: {
|
|
240
|
+
bold: false,
|
|
241
|
+
italic: false,
|
|
242
|
+
underline: true,
|
|
243
|
+
text: 'Underline',
|
|
244
|
+
monospace: false,
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
type: 'text',
|
|
249
|
+
attributes: {
|
|
250
|
+
bold: false,
|
|
251
|
+
italic: false,
|
|
252
|
+
underline: false,
|
|
253
|
+
text: 'None',
|
|
254
|
+
monospace: false,
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
type: 'text',
|
|
259
|
+
attributes: {
|
|
260
|
+
bold: true,
|
|
261
|
+
italic: true,
|
|
262
|
+
underline: true,
|
|
263
|
+
text: 'All',
|
|
264
|
+
monospace: false,
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
type: 'paragraph',
|
|
271
|
+
children: [
|
|
272
|
+
{
|
|
273
|
+
type: 'text',
|
|
274
|
+
attributes: {
|
|
275
|
+
bold: false,
|
|
276
|
+
italic: false,
|
|
277
|
+
underline: false,
|
|
278
|
+
text: 'Something was said',
|
|
279
|
+
monospace: false,
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
type: 'hyperlink',
|
|
284
|
+
attributes: {
|
|
285
|
+
url: 'htttps://somelink',
|
|
286
|
+
text: 'find out what here',
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
type: 'line-break',
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
type: 'text',
|
|
294
|
+
attributes: {
|
|
295
|
+
bold: false,
|
|
296
|
+
italic: false,
|
|
297
|
+
underline: false,
|
|
298
|
+
text: 'and then something else',
|
|
299
|
+
monospace: false,
|
|
300
|
+
},
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
type: 'image',
|
|
306
|
+
attributes: {
|
|
307
|
+
alt: 'alt test',
|
|
308
|
+
caption: 'A caption',
|
|
309
|
+
credit: 'A credit',
|
|
310
|
+
height: 300,
|
|
311
|
+
width: 500,
|
|
312
|
+
url: 'https://some/image/url',
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
type: 'image',
|
|
317
|
+
attributes: {
|
|
318
|
+
alt: '',
|
|
319
|
+
caption: '',
|
|
320
|
+
credit: '',
|
|
321
|
+
height: 300,
|
|
322
|
+
width: 500,
|
|
323
|
+
url: 'https://some/image/url',
|
|
170
324
|
},
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
},
|
|
328
|
+
relationships: {
|
|
329
|
+
categories: {
|
|
330
|
+
data: [
|
|
171
331
|
{
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
332
|
+
id: 'tv film id',
|
|
333
|
+
type: 'category',
|
|
334
|
+
category: {
|
|
335
|
+
data: {
|
|
336
|
+
attributes: {
|
|
337
|
+
title: 'tv film title',
|
|
338
|
+
slug: 'tv-film',
|
|
339
|
+
},
|
|
340
|
+
},
|
|
341
|
+
},
|
|
175
342
|
},
|
|
176
343
|
{
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
344
|
+
id: 'entertainment id',
|
|
345
|
+
type: 'category',
|
|
346
|
+
category: {
|
|
347
|
+
data: {
|
|
348
|
+
attributes: {
|
|
349
|
+
title: 'entertainment title',
|
|
350
|
+
slug: 'entertainment',
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
},
|
|
183
354
|
},
|
|
184
355
|
],
|
|
185
356
|
},
|
|
186
|
-
|
|
187
|
-
type: 'image',
|
|
188
|
-
alt: 'alt test',
|
|
189
|
-
caption: 'A caption',
|
|
190
|
-
credit: 'A credit',
|
|
191
|
-
height: 300,
|
|
192
|
-
width: 500,
|
|
193
|
-
url: 'https://some/image/url',
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
type: 'image',
|
|
197
|
-
alt: '',
|
|
198
|
-
caption: '',
|
|
199
|
-
credit: '',
|
|
200
|
-
height: 300,
|
|
201
|
-
width: 500,
|
|
202
|
-
url: 'https://some/image/url',
|
|
203
|
-
},
|
|
204
|
-
],
|
|
357
|
+
},
|
|
205
358
|
},
|
|
206
359
|
];
|
|
207
|
-
exports.rssWithBodyMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>".concat(exports.titeAttributesMock.title, "</title>\n <atom:link href=\"").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <description>").concat(exports.titeAttributesMock.description, "</description>\n <lastBuildDate>").concat(exports.lastBuildDateMock, "</lastBuildDate>\n <pubDate>").concat(exports.updatedDateTimeMock, "</pubDate>\n <language>").concat(exports.titeAttributesMock.language, "</language>\n <sy:updatePeriod>").concat(exports.titeAttributesMock.updatePeriod, "</sy:updatePeriod>\n <sy:updateFrequency>").concat(exports.titeAttributesMock.updateFrequency, "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>").concat(exports.domainMock).concat(exports.titeAttributesMock.logoUrl, "</url>\n <title>").concat(exports.titeAttributesMock.title, "</title>\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>test publish article after fix deployed</title>\n <link>https://demo.com/tv-film/32579/test-publish-article
|
|
360
|
+
exports.rssWithBodyMock = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n xmlns:sy=\"http://purl.org/rss/1.0/modules/syndication/\"\n xmlns:slash=\"http://purl.org/rss/1.0/modules/slash/\"\t\n xmlns:georss=\"http://www.georss.org/georss\"\n xmlns:geo=\"http://www.w3.org/2003/01/geo/wgs84_pos#\"\n>\n<channel>\n <title>".concat(exports.titeAttributesMock.title, "</title>\n <atom:link href=\"").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "\" rel=\"self\" type=\"application/rss+xml\" />\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <description>").concat(exports.titeAttributesMock.description, "</description>\n <lastBuildDate>").concat(exports.lastBuildDateMock, "</lastBuildDate>\n <pubDate>").concat(exports.updatedDateTimeMock, "</pubDate>\n <language>").concat(exports.titeAttributesMock.language, "</language>\n <sy:updatePeriod>").concat(exports.titeAttributesMock.updatePeriod, "</sy:updatePeriod>\n <sy:updateFrequency>").concat(exports.titeAttributesMock.updateFrequency, "</sy:updateFrequency>\n <generator>Newskit Render</generator>\n <image>\n <url>").concat(exports.domainMock).concat(exports.titeAttributesMock.logoUrl, "</url>\n <title>").concat(exports.titeAttributesMock.title, "</title>\n <link>").concat(exports.domainMock).concat(exports.titeAttributesMock.link, "</link>\n <width>32</width>\n <height>32</height>\n </image>\n <item>\n <title>test publish article after fix deployed</title>\n <link>https://demo.com/tv-film/32579/test-publish-article</link>\n <pubDate>Fri, 25 Mar 2022 23:59:00 GMT</pubDate>\n <dc:creator><![CDATA[Janis Joplin]]></dc:creator>\n <category><![CDATA[tv-film]]></category><category><![CDATA[entertainment]]></category>\n <description><![CDATA[<p><strong>Bold</strong><em>Italic</em><u>Underline</u>None<strong><em><u>All</u></em></strong></p>]]></description>\n <guid isPermaLink=\"false\">Post 32579 at Demo Site</guid>\n <content:encoded><![CDATA[<p><strong>Bold</strong><em>Italic</em><u>Underline</u>None<strong><em><u>All</u></em></strong></p>\n\n<p>Something was said<a href=\"htttps://somelink\">find out what here</a><br />and then something else</p>\n\n<figure><picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&strip=all&crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><img alt='alt test' src='https://some/image/url' width='500' height='300' /><picture><figcaption>A caption</figcaption><figcredit>A credit</figcredit></figure>\n\n<picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&strip=all&crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><img src='https://some/image/url' width='500' height='300' /><picture>]]></content:encoded>\n </item>\n \n</channel>\n</rss>\n");
|
|
208
361
|
exports.mockBodyBlocks = [
|
|
209
362
|
{
|
|
210
363
|
type: 'paragraph',
|
|
211
|
-
|
|
364
|
+
children: [
|
|
212
365
|
{
|
|
213
|
-
bold: false,
|
|
214
|
-
italic: false,
|
|
215
|
-
underline: false,
|
|
216
|
-
text: 'Something was said ',
|
|
217
366
|
type: 'text',
|
|
218
|
-
|
|
367
|
+
attributes: {
|
|
368
|
+
bold: false,
|
|
369
|
+
italic: false,
|
|
370
|
+
underline: false,
|
|
371
|
+
text: 'Something was said',
|
|
372
|
+
monospace: false,
|
|
373
|
+
},
|
|
219
374
|
},
|
|
220
375
|
{
|
|
221
|
-
url: 'htttps://somelink',
|
|
222
|
-
text: 'find ourt what here ',
|
|
223
376
|
type: 'hyperlink',
|
|
377
|
+
attributes: {
|
|
378
|
+
url: 'htttps://somelink',
|
|
379
|
+
text: 'find out what here',
|
|
380
|
+
},
|
|
224
381
|
},
|
|
225
382
|
],
|
|
226
383
|
},
|
|
227
384
|
{
|
|
228
385
|
type: 'image',
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
386
|
+
attributes: {
|
|
387
|
+
alt: '',
|
|
388
|
+
caption: '',
|
|
389
|
+
credit: '',
|
|
390
|
+
height: 300,
|
|
391
|
+
width: 500,
|
|
392
|
+
url: 'https://some/image/url',
|
|
393
|
+
},
|
|
235
394
|
},
|
|
236
395
|
{
|
|
237
396
|
type: 'tweet',
|
|
238
|
-
|
|
397
|
+
attributes: {
|
|
398
|
+
id: '123456789',
|
|
399
|
+
},
|
|
239
400
|
},
|
|
240
401
|
{
|
|
241
402
|
type: 'instagram',
|
|
242
|
-
|
|
403
|
+
attributes: {
|
|
404
|
+
id: '123456789',
|
|
405
|
+
},
|
|
243
406
|
},
|
|
244
407
|
{
|
|
245
408
|
type: 'youtube',
|
|
246
|
-
|
|
409
|
+
attributes: {
|
|
410
|
+
id: '123456789',
|
|
411
|
+
},
|
|
247
412
|
},
|
|
248
413
|
{
|
|
249
414
|
type: 'embed',
|
|
250
|
-
|
|
415
|
+
attributes: {
|
|
416
|
+
url: '/something',
|
|
417
|
+
},
|
|
251
418
|
},
|
|
252
419
|
{
|
|
253
420
|
type: 'video-brightcove',
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
421
|
+
attributes: {
|
|
422
|
+
id: '123456789',
|
|
423
|
+
playerId: 'default',
|
|
424
|
+
accountId: '456',
|
|
425
|
+
},
|
|
257
426
|
},
|
|
258
427
|
{
|
|
259
428
|
type: 'heading',
|
|
260
|
-
|
|
429
|
+
attributes: {
|
|
430
|
+
level: 3,
|
|
431
|
+
},
|
|
261
432
|
children: [
|
|
262
433
|
{
|
|
263
434
|
type: 'text',
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
435
|
+
attributes: {
|
|
436
|
+
text: 'A heading level 3',
|
|
437
|
+
bold: false,
|
|
438
|
+
italic: false,
|
|
439
|
+
},
|
|
267
440
|
},
|
|
268
441
|
],
|
|
269
442
|
},
|
|
270
443
|
{
|
|
271
444
|
type: 'unordered-list',
|
|
272
|
-
|
|
445
|
+
children: [
|
|
273
446
|
{
|
|
274
447
|
type: 'text',
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
448
|
+
attributes: {
|
|
449
|
+
text: 'Eos et accusamus',
|
|
450
|
+
bold: false,
|
|
451
|
+
italic: false,
|
|
452
|
+
},
|
|
278
453
|
},
|
|
279
454
|
{
|
|
280
455
|
type: 'text',
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
456
|
+
attributes: {
|
|
457
|
+
text: 'Expedita distinctio',
|
|
458
|
+
bold: false,
|
|
459
|
+
italic: false,
|
|
460
|
+
},
|
|
284
461
|
},
|
|
285
462
|
{
|
|
286
463
|
type: 'text',
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
464
|
+
attributes: {
|
|
465
|
+
text: 'Libero tempore, cum soluta nobis',
|
|
466
|
+
bold: false,
|
|
467
|
+
italic: false,
|
|
468
|
+
},
|
|
290
469
|
},
|
|
291
470
|
],
|
|
292
471
|
},
|
|
293
472
|
{
|
|
294
473
|
type: 'ordered-list',
|
|
295
|
-
|
|
474
|
+
children: [
|
|
296
475
|
{
|
|
297
476
|
type: 'text',
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
477
|
+
attributes: {
|
|
478
|
+
text: 'Eos ordered',
|
|
479
|
+
bold: false,
|
|
480
|
+
italic: false,
|
|
481
|
+
},
|
|
301
482
|
},
|
|
302
483
|
{
|
|
303
484
|
type: 'text',
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
485
|
+
attributes: {
|
|
486
|
+
text: 'Expedita distinctio order',
|
|
487
|
+
bold: false,
|
|
488
|
+
italic: false,
|
|
489
|
+
},
|
|
307
490
|
},
|
|
308
491
|
{
|
|
309
492
|
type: 'text',
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
493
|
+
attributes: {
|
|
494
|
+
text: 'Libero tempore, cum soluta nobis order',
|
|
495
|
+
bold: false,
|
|
496
|
+
italic: false,
|
|
497
|
+
},
|
|
313
498
|
},
|
|
314
499
|
],
|
|
315
500
|
},
|
|
316
501
|
];
|
|
317
502
|
exports.expectedBodyBlocks = [
|
|
318
|
-
"<p>Something was said
|
|
503
|
+
"<p>Something was said<a href=\"htttps://somelink\">find out what here</a></p>",
|
|
319
504
|
"<picture><source media=\"screen and (max-width: 479px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 480px) and (max-width: 767px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 768px) and (max-width: 1023px)\" srcset=\"https://some/image/url?w=719&strip=all&crop=1\"><source media=\"screen and (min-width: 1024px) and (max-width: 1439px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><source media=\"screen and (min-width: 1440px)\" srcset=\"https://some/image/url?w=0&strip=all&crop=1\"><img src='https://some/image/url' width='500' height='300' /><picture>",
|
|
320
505
|
"<blockquote class=\"twitter-tweet\"><a href=\"https://twitter.com/x/status/123456789\"></a></blockquote> <script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>",
|
|
321
506
|
"<blockquote className=\"instagram-media\" data-instgrm-captioned data-instgrm-version=\"4\"><a href=\"https://instagram.com/p/123456789/\"></a></blockquote>",
|
|
@@ -329,34 +514,45 @@ exports.expectedBodyBlocks = [
|
|
|
329
514
|
exports.mockList = [
|
|
330
515
|
{
|
|
331
516
|
type: 'text',
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
517
|
+
attributes: {
|
|
518
|
+
text: 'Libero tempore, cum soluta nobis order',
|
|
519
|
+
bold: false,
|
|
520
|
+
italic: false,
|
|
521
|
+
},
|
|
335
522
|
},
|
|
336
523
|
{
|
|
337
|
-
url: 'htttps://somelink',
|
|
338
|
-
text: 'find ourt what here ',
|
|
339
524
|
type: 'hyperlink',
|
|
525
|
+
attributes: {
|
|
526
|
+
text: 'find out what here',
|
|
527
|
+
url: 'htttps://somelink',
|
|
528
|
+
},
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
type: 'line-break',
|
|
340
532
|
},
|
|
341
533
|
{
|
|
342
534
|
type: 'ordered-list',
|
|
343
|
-
|
|
535
|
+
children: [
|
|
344
536
|
{
|
|
345
537
|
type: 'text',
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
538
|
+
attributes: {
|
|
539
|
+
text: 'Eos et accusamus',
|
|
540
|
+
bold: false,
|
|
541
|
+
italic: false,
|
|
542
|
+
},
|
|
349
543
|
},
|
|
350
544
|
],
|
|
351
545
|
},
|
|
352
546
|
{
|
|
353
547
|
type: 'unordered-list',
|
|
354
|
-
|
|
548
|
+
children: [
|
|
355
549
|
{
|
|
356
550
|
type: 'text',
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
551
|
+
attributes: {
|
|
552
|
+
text: 'Eos et accusamus ordered',
|
|
553
|
+
bold: false,
|
|
554
|
+
italic: false,
|
|
555
|
+
},
|
|
360
556
|
},
|
|
361
557
|
],
|
|
362
558
|
},
|