{"action":"created","comment":{"url":"https://api.github.com/repos/newsuk/times-components/pulls/comments/203033192","pull_request_review_id":137842398,"id":203033192,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzAzMzE5Mg==","diff_hunk":"@@ -0,0 +1,47 @@\n+import React from \"react\";\n+import mockDate from \"mockdate\";\n+import RelatedArticles from \"../src/related-articles\";\n+import opinionAndTwo1ArticleFixture from \"../fixtures/opinionandtwo/1-article\";\n+import { createRelatedArticlesProps, testSummary } from \"./shared-util\";\n+\n+const opinionAndTwo1ArticleFixtureData = opinionAndTwo1ArticleFixture({\n+  url: \"https://test.io\",\n+  crop169: \"https://crop.io\",\n+  headline: \"Test Headline\",\n+  summary125: testSummary(125),\n+  summary160: testSummary(160)\n+}).data;\n+\n+export default renderComponent => {\n+  const realIntl = Intl;\n+\n+  beforeEach(() => {\n+    mockDate.set(1514764800000, 0);\n+    global.Intl = {\n+      DateTimeFormat: () => ({\n+        resolvedOptions: () => ({ timeZone: \"Europe/London\" })\n+      })\n+    };\n+    jest.useFakeTimers();\n+  });\n+\n+  afterEach(() => {\n+    mockDate.reset();\n+    global.Intl = realIntl;\n+  });\n+\n+  it(\"default styles\", () => {\n+    const events = jest.fn();\n+\n+    const output = renderComponent(\n+      <RelatedArticles\n+        {...createRelatedArticlesProps(\n+          opinionAndTwo1ArticleFixtureData,\n+          events\n+        )}\n+      />\n+    );\n+\n+    expect(output).toMatchSnapshot(\"1. default styles\");","path":"packages/related-articles/__tests__/shared-oa2-with-style.base.js","position":45,"original_position":45,"commit_id":"6b134206751f36a3cc4088dcfd37dc236190ccfe","original_commit_id":"6b134206751f36a3cc4088dcfd37dc236190ccfe","user":{"login":"colincclark","id":5456015,"node_id":"MDQ6VXNlcjU0NTYwMTU=","avatar_url":"https://avatars2.githubusercontent.com/u/5456015?v=4","gravatar_id":"","url":"https://api.github.com/users/colincclark","html_url":"https://github.com/colincclark","followers_url":"https://api.github.com/users/colincclark/followers","following_url":"https://api.github.com/users/colincclark/following{/other_user}","gists_url":"https://api.github.com/users/colincclark/gists{/gist_id}","starred_url":"https://api.github.com/users/colincclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colincclark/subscriptions","organizations_url":"https://api.github.com/users/colincclark/orgs","repos_url":"https://api.github.com/users/colincclark/repos","events_url":"https://api.github.com/users/colincclark/events{/privacy}","received_events_url":"https://api.github.com/users/colincclark/received_events","type":"User","site_admin":false},"body":"this won't work with the jest bump","created_at":"2018-07-17T14:00:44Z","updated_at":"2018-07-17T14:01:45Z","html_url":"https://github.com/newsuk/times-components/pull/1112#discussion_r203033192","pull_request_url":"https://api.github.com/repos/newsuk/times-components/pulls/1112","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/newsuk/times-components/pulls/comments/203033192"},"html":{"href":"https://github.com/newsuk/times-components/pull/1112#discussion_r203033192"},"pull_request":{"href":"https://api.github.com/repos/newsuk/times-components/pulls/1112"}}},"pull_request":{"url":"https://api.github.com/repos/newsuk/times-components/pulls/1112","id":201302686,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxMzAyNjg2","html_url":"https://github.com/newsuk/times-components/pull/1112","diff_url":"https://github.com/newsuk/times-components/pull/1112.diff","patch_url":"https://github.com/newsuk/times-components/pull/1112.patch","issue_url":"https://api.github.com/repos/newsuk/times-components/issues/1112","number":1112,"state":"open","locked":false,"title":"test: refactor related article snaps","user":{"login":"craigbilner","id":12942968,"node_id":"MDQ6VXNlcjEyOTQyOTY4","avatar_url":"https://avatars2.githubusercontent.com/u/12942968?v=4","gravatar_id":"","url":"https://api.github.com/users/craigbilner","html_url":"https://github.com/craigbilner","followers_url":"https://api.github.com/users/craigbilner/followers","following_url":"https://api.github.com/users/craigbilner/following{/other_user}","gists_url":"https://api.github.com/users/craigbilner/gists{/gist_id}","starred_url":"https://api.github.com/users/craigbilner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigbilner/subscriptions","organizations_url":"https://api.github.com/users/craigbilner/orgs","repos_url":"https://api.github.com/users/craigbilner/repos","events_url":"https://api.github.com/users/craigbilner/events{/privacy}","received_events_url":"https://api.github.com/users/craigbilner/received_events","type":"User","site_admin":false},"body":"Refactored and DRYed up the related article tests/snaps to make them easier to read/reason about.\r\n\r\nUnfortunately there is a slight dependency still on `ArticleSummary` due to various issues testing render props.","created_at":"2018-07-13T14:10:22Z","updated_at":"2018-07-17T14:01:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c2ba2175253c995925df48631c6e4be3203c6f3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/newsuk/times-components/pulls/1112/commits","review_comments_url":"https://api.github.com/repos/newsuk/times-components/pulls/1112/comments","review_comment_url":"https://api.github.com/repos/newsuk/times-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/newsuk/times-components/issues/1112/comments","statuses_url":"https://api.github.com/repos/newsuk/times-components/statuses/6b134206751f36a3cc4088dcfd37dc236190ccfe","head":{"label":"newsuk:test/refactor-ra","ref":"test/refactor-ra","sha":"6b134206751f36a3cc4088dcfd37dc236190ccfe","user":{"login":"newsuk","id":736306,"node_id":"MDEyOk9yZ2FuaXphdGlvbjczNjMwNg==","avatar_url":"https://avatars1.githubusercontent.com/u/736306?v=4","gravatar_id":"","url":"https://api.github.com/users/newsuk","html_url":"https://github.com/newsuk","followers_url":"https://api.github.com/users/newsuk/followers","following_url":"https://api.github.com/users/newsuk/following{/other_user}","gists_url":"https://api.github.com/users/newsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/newsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newsuk/subscriptions","organizations_url":"https://api.github.com/users/newsuk/orgs","repos_url":"https://api.github.com/users/newsuk/repos","events_url":"https://api.github.com/users/newsuk/events{/privacy}","received_events_url":"https://api.github.com/users/newsuk/received_events","type":"Organization","site_admin":false},"repo":{"id":93151110,"node_id":"MDEwOlJlcG9zaXRvcnk5MzE1MTExMA==","name":"times-components","full_name":"newsuk/times-components","owner":{"login":"newsuk","id":736306,"node_id":"MDEyOk9yZ2FuaXphdGlvbjczNjMwNg==","avatar_url":"https://avatars1.githubusercontent.com/u/736306?v=4","gravatar_id":"","url":"https://api.github.com/users/newsuk","html_url":"https://github.com/newsuk","followers_url":"https://api.github.com/users/newsuk/followers","following_url":"https://api.github.com/users/newsuk/following{/other_user}","gists_url":"https://api.github.com/users/newsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/newsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newsuk/subscriptions","organizations_url":"https://api.github.com/users/newsuk/orgs","repos_url":"https://api.github.com/users/newsuk/repos","events_url":"https://api.github.com/users/newsuk/events{/privacy}","received_events_url":"https://api.github.com/users/newsuk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/newsuk/times-components","description":"A collection of reusable components used by The Times","fork":false,"url":"https://api.github.com/repos/newsuk/times-components","forks_url":"https://api.github.com/repos/newsuk/times-components/forks","keys_url":"https://api.github.com/repos/newsuk/times-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/newsuk/times-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/newsuk/times-components/teams","hooks_url":"https://api.github.com/repos/newsuk/times-components/hooks","issue_events_url":"https://api.github.com/repos/newsuk/times-components/issues/events{/number}","events_url":"https://api.github.com/repos/newsuk/times-components/events","assignees_url":"https://api.github.com/repos/newsuk/times-components/assignees{/user}","branches_url":"https://api.github.com/repos/newsuk/times-components/branches{/branch}","tags_url":"https://api.github.com/repos/newsuk/times-components/tags","blobs_url":"https://api.github.com/repos/newsuk/times-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/newsuk/times-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/newsuk/times-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/newsuk/times-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/newsuk/times-components/statuses/{sha}","languages_url":"https://api.github.com/repos/newsuk/times-components/languages","stargazers_url":"https://api.github.com/repos/newsuk/times-components/stargazers","contributors_url":"https://api.github.com/repos/newsuk/times-components/contributors","subscribers_url":"https://api.github.com/repos/newsuk/times-components/subscribers","subscription_url":"https://api.github.com/repos/newsuk/times-components/subscription","commits_url":"https://api.github.com/repos/newsuk/times-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/newsuk/times-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/newsuk/times-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/newsuk/times-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/newsuk/times-components/contents/{+path}","compare_url":"https://api.github.com/repos/newsuk/times-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/newsuk/times-components/merges","archive_url":"https://api.github.com/repos/newsuk/times-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/newsuk/times-components/downloads","issues_url":"https://api.github.com/repos/newsuk/times-components/issues{/number}","pulls_url":"https://api.github.com/repos/newsuk/times-components/pulls{/number}","milestones_url":"https://api.github.com/repos/newsuk/times-components/milestones{/number}","notifications_url":"https://api.github.com/repos/newsuk/times-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/newsuk/times-components/labels{/name}","releases_url":"https://api.github.com/repos/newsuk/times-components/releases{/id}","deployments_url":"https://api.github.com/repos/newsuk/times-components/deployments","created_at":"2017-06-02T09:41:03Z","updated_at":"2018-07-17T12:29:01Z","pushed_at":"2018-07-17T13:57:01Z","git_url":"git://github.com/newsuk/times-components.git","ssh_url":"git@github.com:newsuk/times-components.git","clone_url":"https://github.com/newsuk/times-components.git","svn_url":"https://github.com/newsuk/times-components","homepage":"http://components.thetimes.co.uk","size":51531,"stargazers_count":88,"watchers_count":88,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":36,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":12,"open_issues":36,"watchers":88,"default_branch":"master"}},"base":{"label":"newsuk:master","ref":"master","sha":"ff37080f468a0166dac378a13b96e18d01155b8e","user":{"login":"newsuk","id":736306,"node_id":"MDEyOk9yZ2FuaXphdGlvbjczNjMwNg==","avatar_url":"https://avatars1.githubusercontent.com/u/736306?v=4","gravatar_id":"","url":"https://api.github.com/users/newsuk","html_url":"https://github.com/newsuk","followers_url":"https://api.github.com/users/newsuk/followers","following_url":"https://api.github.com/users/newsuk/following{/other_user}","gists_url":"https://api.github.com/users/newsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/newsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newsuk/subscriptions","organizations_url":"https://api.github.com/users/newsuk/orgs","repos_url":"https://api.github.com/users/newsuk/repos","events_url":"https://api.github.com/users/newsuk/events{/privacy}","received_events_url":"https://api.github.com/users/newsuk/received_events","type":"Organization","site_admin":false},"repo":{"id":93151110,"node_id":"MDEwOlJlcG9zaXRvcnk5MzE1MTExMA==","name":"times-components","full_name":"newsuk/times-components","owner":{"login":"newsuk","id":736306,"node_id":"MDEyOk9yZ2FuaXphdGlvbjczNjMwNg==","avatar_url":"https://avatars1.githubusercontent.com/u/736306?v=4","gravatar_id":"","url":"https://api.github.com/users/newsuk","html_url":"https://github.com/newsuk","followers_url":"https://api.github.com/users/newsuk/followers","following_url":"https://api.github.com/users/newsuk/following{/other_user}","gists_url":"https://api.github.com/users/newsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/newsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newsuk/subscriptions","organizations_url":"https://api.github.com/users/newsuk/orgs","repos_url":"https://api.github.com/users/newsuk/repos","events_url":"https://api.github.com/users/newsuk/events{/privacy}","received_events_url":"https://api.github.com/users/newsuk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/newsuk/times-components","description":"A collection of reusable components used by The Times","fork":false,"url":"https://api.github.com/repos/newsuk/times-components","forks_url":"https://api.github.com/repos/newsuk/times-components/forks","keys_url":"https://api.github.com/repos/newsuk/times-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/newsuk/times-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/newsuk/times-components/teams","hooks_url":"https://api.github.com/repos/newsuk/times-components/hooks","issue_events_url":"https://api.github.com/repos/newsuk/times-components/issues/events{/number}","events_url":"https://api.github.com/repos/newsuk/times-components/events","assignees_url":"https://api.github.com/repos/newsuk/times-components/assignees{/user}","branches_url":"https://api.github.com/repos/newsuk/times-components/branches{/branch}","tags_url":"https://api.github.com/repos/newsuk/times-components/tags","blobs_url":"https://api.github.com/repos/newsuk/times-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/newsuk/times-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/newsuk/times-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/newsuk/times-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/newsuk/times-components/statuses/{sha}","languages_url":"https://api.github.com/repos/newsuk/times-components/languages","stargazers_url":"https://api.github.com/repos/newsuk/times-components/stargazers","contributors_url":"https://api.github.com/repos/newsuk/times-components/contributors","subscribers_url":"https://api.github.com/repos/newsuk/times-components/subscribers","subscription_url":"https://api.github.com/repos/newsuk/times-components/subscription","commits_url":"https://api.github.com/repos/newsuk/times-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/newsuk/times-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/newsuk/times-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/newsuk/times-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/newsuk/times-components/contents/{+path}","compare_url":"https://api.github.com/repos/newsuk/times-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/newsuk/times-components/merges","archive_url":"https://api.github.com/repos/newsuk/times-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/newsuk/times-components/downloads","issues_url":"https://api.github.com/repos/newsuk/times-components/issues{/number}","pulls_url":"https://api.github.com/repos/newsuk/times-components/pulls{/number}","milestones_url":"https://api.github.com/repos/newsuk/times-components/milestones{/number}","notifications_url":"https://api.github.com/repos/newsuk/times-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/newsuk/times-components/labels{/name}","releases_url":"https://api.github.com/repos/newsuk/times-components/releases{/id}","deployments_url":"https://api.github.com/repos/newsuk/times-components/deployments","created_at":"2017-06-02T09:41:03Z","updated_at":"2018-07-17T12:29:01Z","pushed_at":"2018-07-17T13:57:01Z","git_url":"git://github.com/newsuk/times-components.git","ssh_url":"git@github.com:newsuk/times-components.git","clone_url":"https://github.com/newsuk/times-components.git","svn_url":"https://github.com/newsuk/times-components","homepage":"http://components.thetimes.co.uk","size":51531,"stargazers_count":88,"watchers_count":88,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":36,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":12,"open_issues":36,"watchers":88,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/newsuk/times-components/pulls/1112"},"html":{"href":"https://github.com/newsuk/times-components/pull/1112"},"issue":{"href":"https://api.github.com/repos/newsuk/times-components/issues/1112"},"comments":{"href":"https://api.github.com/repos/newsuk/times-components/issues/1112/comments"},"review_comments":{"href":"https://api.github.com/repos/newsuk/times-components/pulls/1112/comments"},"review_comment":{"href":"https://api.github.com/repos/newsuk/times-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/newsuk/times-components/pulls/1112/commits"},"statuses":{"href":"https://api.github.com/repos/newsuk/times-components/statuses/6b134206751f36a3cc4088dcfd37dc236190ccfe"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"colincclark"}}