Skip to content

Commit

Permalink
chore: updating fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
NehaSrivastava committed Oct 2, 2018
1 parent 29bf77b commit 43a0907
Show file tree
Hide file tree
Showing 14 changed files with 85 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/article/fixtures/full-article.js
Original file line number Diff line number Diff line change
Expand Up @@ -2024,6 +2024,8 @@ export const testFixture = {
hasVideo: false,
headline: "Some Headline",
label: "Some Label",
slug: "this-is-slug",
shortIdentifier: "2k629tpvh",
leadAsset: {
id: "id-123",
title: "Some Title",
Expand Down Expand Up @@ -2057,6 +2059,8 @@ export const testFixture = {
crop32: { url: "https://racrop32.io", __typename: "Crop" },
__typename: "Image"
},
slug: "this-is-slug",
shortIdentifier: "2k629tpvh",
url: "https://ra.io",
__typename: "Article"
}
Expand Down
6 changes: 6 additions & 0 deletions packages/related-articles/fixtures/leadandtwo/1-article.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const defaultCrop169 =
const defaultHeadline = "Defence of the Realm";
const defaultShortHeadline = "Defence of the Realm";
const defaultLabel = "leading article";
const defaultSlug = "bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely";
const defaultShortIdentifier = "2k629tpvh";
const defaultSummary105 = [
{
name: "paragraph",
Expand Down Expand Up @@ -108,6 +110,8 @@ export default (
crop169 = defaultCrop169,
headline = defaultHeadline,
label = defaultLabel,
slug = defaultSlug,
shortIdentifier = defaultShortIdentifier,
shortHeadline = defaultShortHeadline,
summary105 = defaultSummary105,
summary125 = defaultSummary125,
Expand Down Expand Up @@ -140,6 +144,8 @@ export default (
}
],
headline,
slug,
shortIdentifier,
label,
id: "a88b0330-d14c-11e7-b1ec-8503a5941b97",
leadAsset: {
Expand Down
8 changes: 8 additions & 0 deletions packages/related-articles/fixtures/leadandtwo/2-articles.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ const defaultSecondSummary225 = [
const defaultSecondUrl =
"https://www.uat-thetimes.co.uk/article/size-matters-so-ministers-must-prove-they-are-serious-about-defence-bhs0jnw6d";

const defaultSlug = "bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely";
const defaultShortIdentifier = "2k629tpvh";
export default (
{
firstCrop169 = defaultFirstCrop169,
Expand All @@ -284,6 +286,8 @@ export default (
firstSummary225 = defaultFirstSummary225,
firstTitle = defaultFirstTitle,
firstUrl = defaultFirstUrl,
firstSlug = defaultSlug,
firstShortIdentifier = defaultShortIdentifier,
secondCrop169 = defaultSecondCrop169,
secondHeadline = defaultSecondHeadline,
secondLabel = defaultSecondLabel,
Expand Down Expand Up @@ -338,6 +342,8 @@ export default (
summary160: firstSummary160,
summary175: firstSummary175,
summary225: firstSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: firstUrl
}
},
Expand Down Expand Up @@ -382,6 +388,8 @@ export default (
summary160: secondSummary160,
summary175: secondSummary175,
summary225: secondSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: secondUrl
}
}
Expand Down
10 changes: 10 additions & 0 deletions packages/related-articles/fixtures/leadandtwo/3-articles.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ const defaultSecondHeadline = "Trident gets out of MoD budget, Hammond urged";
const defaultSecondShortHeadline = "Trident gets out of MoD budget";
const defaultSecondLabel = "defence cuts";
const defaultSecondSection = "sport";
const defaultSlug = "bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely";
const defaultShortIdentifier = "2k629tpvh";
const defaultSecondSummary105 = [
{
name: "paragraph",
Expand Down Expand Up @@ -408,6 +410,8 @@ export default (
firstSummary225 = defaultFirstSummary225,
firstTitle = defaultFirstTitle,
firstUrl = defaultFirstUrl,
firstSlug = defaultSlug,
firstShortIdentifier = defaultShortIdentifier,
secondCrop169 = defaultSecondCrop169,
secondHeadline = defaultSecondHeadline,
secondLabel = defaultSecondLabel,
Expand Down Expand Up @@ -475,6 +479,8 @@ export default (
summary160: firstSummary160,
summary175: firstSummary175,
summary225: firstSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: firstUrl
}
},
Expand Down Expand Up @@ -513,6 +519,8 @@ export default (
summary160: secondSummary160,
summary175: secondSummary175,
summary225: secondSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: secondUrl
}
},
Expand Down Expand Up @@ -551,6 +559,8 @@ export default (
summary160: thirdSummary160,
summary175: thirdSummary175,
summary225: thirdSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: thirdUrl
}
}
Expand Down
6 changes: 6 additions & 0 deletions packages/related-articles/fixtures/opinionandtwo/1-article.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const defaultHeadline =
const defaultShortHeadline = "Nothing proves Jeremy Corbyn is anti-semitic";
const defaultLabel = "opinion";
const defaultSection = "comment";
const defaultSlug = "bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely";
const defaultShortIdentifier = "2k629tpvh";
const defaultSummary105 = [
{
name: "paragraph",
Expand Down Expand Up @@ -114,6 +116,8 @@ export default (
headline = defaultHeadline,
label = defaultLabel,
section = defaultSection,
slug = defaultSlug,
shortIdentifier = defaultShortIdentifier,
shortHeadline = defaultShortHeadline,
summary105 = defaultSummary105,
summary125 = defaultSummary125,
Expand Down Expand Up @@ -147,6 +151,8 @@ export default (
],
headline,
id: "a88b0330-d14c-11e7-b1ec-8503a5941b97",
slug,
shortIdentifier,
label,
leadAsset: {
title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ const defaultSecondSummary225 = [
]
}
];
const defaultSlug = "bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely";
const defaultShortIdentifier = "2k629tpvh";
const defaultSecondUrl =
"https://www.uat-thetimes.co.uk/article/size-matters-so-ministers-must-prove-they-are-serious-about-defence-bhs0jnw6d";

Expand All @@ -282,6 +284,8 @@ export default (
firstSummary225 = defaultFirstSummary225,
firstTitle = defaultFirstTitle,
firstUrl = defaultFirstUrl,
firstSlug = defaultSlug,
firstShortIdentifier = defaultShortIdentifier,
secondCrop23 = defaultSecondCrop23,
secondCrop169 = defaultSecondCrop169,
secondHeadline = defaultSecondHeadline,
Expand Down Expand Up @@ -340,6 +344,8 @@ export default (
summary160: firstSummary160,
summary175: firstSummary175,
summary225: firstSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: firstUrl
}
},
Expand Down Expand Up @@ -381,6 +387,8 @@ export default (
summary160: secondSummary160,
summary175: secondSummary175,
summary225: secondSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: secondUrl
}
}
Expand Down
10 changes: 10 additions & 0 deletions packages/related-articles/fixtures/opinionandtwo/3-articles.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const defaultFirstHeadline = "High score for labour in football club election";
const defaultFirstShortHeadline = "High score for labour in football";
const defaultFirstLabel = "opinion";
const defaultFirstSection = "comment";
const defaultSlug = "bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely";
const defaultShortIdentifier = "2k629tpvh";
const defaultFirstSummary105 = [
{
name: "paragraph",
Expand Down Expand Up @@ -415,6 +417,8 @@ export default (
firstSummary225 = defaultFirstSummary225,
firstTitle = defaultFirstTitle,
firstUrl = defaultFirstUrl,
firstSlug = defaultSlug,
firstShortIdentifier = defaultShortIdentifier,
secondCrop23 = defaultSecondCrop23,
secondCrop169 = defaultSecondCrop169,
secondHeadline = defaultSecondHeadline,
Expand Down Expand Up @@ -487,6 +491,8 @@ export default (
summary160: firstSummary160,
summary175: firstSummary175,
summary225: firstSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: firstUrl
}
},
Expand Down Expand Up @@ -528,6 +534,8 @@ export default (
summary160: secondSummary160,
summary175: secondSummary175,
summary225: secondSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: secondUrl
}
},
Expand Down Expand Up @@ -569,6 +577,8 @@ export default (
summary160: thirdSummary160,
summary175: thirdSummary175,
summary225: thirdSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: thirdUrl
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"id": "08604618-fb0e-11e7-a987-7fcf5e9983dc",
"headline":
"Now for a new battle: bringing the fragile masterpiece over safely",
"slug":"bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely",
"shortIdentifier":"2k629tpvh",
"shortHeadline": "Bringing the fragile masterpiece over safely",
"section": "thedish",
"summary105": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"id": "18604618-fb0e-11e7-a987-7fcf5e9983dc",
"headline":
"Now for a new battle: bringing the fragile masterpiece over safely",
"slug":"bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely",
"shortIdentifier":"2k629tpvh",
"shortHeadline": "Bringing the fragile masterpiece over safely",
"section": "thedish",
"summary105": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"id": "28604618-fb0e-11e7-a987-7fcf5e9983dc",
"headline":
"Now for a new battle: bringing the fragile masterpiece over safely",
"slug":"bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely",
"shortIdentifier":"2k629tpvh",
"shortHeadline": "Bringing the fragile masterpiece over safely",
"section": "thedish",
"summary105": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"hasVideo": true,
"headline":
"Now for a new battle: bringing the fragile masterpiece over safely",
"slug":"bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely",
"shortIdentifier":"2k629tpvh",
"shortHeadline": "Bringing the fragile masterpiece over safely",
"section": "thedish",
"summary105": [
Expand Down
6 changes: 6 additions & 0 deletions packages/related-articles/fixtures/standard/1-article.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ const defaultTitle =
const defaultUrl =
"https://www.thetimes.co.uk/article/bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely-2k629tpvh";

const defaultSlug = "bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely";
const defaultShortIdentifier = "2k629tpvh";
export default (
{
crop169 = defaultCrop169,
Expand All @@ -128,6 +130,8 @@ export default (
summary175 = defaultSummary175,
summary225 = defaultSummary225,
title = defaultTitle,
slug = defaultSlug,
shortIdentifier = defaultShortIdentifier,
url = defaultUrl
} = {}
) => ({
Expand Down Expand Up @@ -187,6 +191,8 @@ export default (
summary160,
summary175,
summary225,
slug,
shortIdentifier,
url
}
}
Expand Down
9 changes: 9 additions & 0 deletions packages/related-articles/fixtures/standard/2-articles.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ const defaultSecondSummary225 = [
const defaultSecondUrl =
"https://www.thetimes.co.uk/article/bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely-2k629tpvh";

const defaultSlug = "bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely";
const defaultShortIdentifier = "2k629tpvh";

export default (
{
firstCrop169 = defaultFirstCrop169,
Expand All @@ -381,6 +384,8 @@ export default (
firstSummary225 = defaultFirstSummary225,
firstTitle = defaultFirstTitle,
firstUrl = defaultFirstUrl,
firstSlug = defaultSlug,
firstShortIdentifier = defaultShortIdentifier,
secondCrop169 = defaultSecondCrop169,
secondHeadline = defaultSecondHeadline,
secondLabel = defaultSecondLabel,
Expand Down Expand Up @@ -436,6 +441,8 @@ export default (
summary160: firstSummary160,
summary175: firstSummary175,
summary225: firstSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: firstUrl
}
},
Expand Down Expand Up @@ -480,6 +487,8 @@ export default (
summary160: secondSummary160,
summary175: secondSummary175,
summary225: secondSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: secondUrl
}
}
Expand Down
10 changes: 10 additions & 0 deletions packages/related-articles/fixtures/standard/3-articles.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ const defaultFirstTitle =
"The tapestry has had a purpose-built home since 1983, having once been kept at Bayeux Cathedral";
const defaultFirstUrl =
"https://www.thetimes.co.uk/article/bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely-2k629tpvh";
const defaultSlug = "bayeux-tapestry-now-for-a-new-battle-bringing-fragile-masterpiece-to-britain-safely";
const defaultShortIdentifier = "2k629tpvh";
const defaultSecondCrop169 =
"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F82723c10-fb7f-11e7-a987-7fcf5e9983dc.jpg?crop=4886%2C2748%2C92%2C108";
const defaultSecondHeadline = "Bayeux Tapestry to be displayed in Britain";
Expand Down Expand Up @@ -493,6 +495,8 @@ export default (
firstSummary225 = defaultFirstSummary225,
firstTitle = defaultFirstTitle,
firstUrl = defaultFirstUrl,
firstSlug = defaultSlug,
firstShortIdentifier = defaultShortIdentifier,
secondCrop169 = defaultSecondCrop169,
secondHeadline = defaultSecondHeadline,
secondLabel = defaultSecondLabel,
Expand Down Expand Up @@ -561,6 +565,8 @@ export default (
summary160: firstSummary160,
summary175: firstSummary175,
summary225: firstSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: firstUrl
}
},
Expand Down Expand Up @@ -599,6 +605,8 @@ export default (
summary160: secondSummary160,
summary175: secondSummary175,
summary225: secondSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: secondUrl
}
},
Expand Down Expand Up @@ -639,6 +647,8 @@ export default (
summary160: thirdSummary160,
summary175: thirdSummary175,
summary225: thirdSummary225,
slug: firstSlug,
shortIdentifier: firstShortIdentifier,
url: thirdUrl
}
}
Expand Down

0 comments on commit 43a0907

Please sign in to comment.