{"action":"created","comment":{"url":"https://api.github.com/repos/myYearOfCode/the_morning_T/pulls/comments/278288464","pull_request_review_id":230317956,"id":278288464,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3ODI4ODQ2NA==","diff_hunk":"@@ -0,0 +1,33 @@\n+import { shallow } from 'enzyme'\n+import fetchMock from 'fetch-mock'\n+\n+import Stop from '../../app/javascript/react/components/Stop'\n+\n+describe('show page test', () => {\n+  let component;\n+\n+  beforeEach(() => {\n+    let stop = {\"id\":1,\"name\":\"El Greco\",\"created_at\":\"2019-04-22T18:53:17.323Z\",\"updated_at\":\"2019-04-22T18:53:17.323Z\"}\n+\n+    fetchMock.get('/api/v1/stops/1', {\n+      status: 200,\n+      body: stop\n+    });\n+\n+    component = mount(\n+      <Stop params={{\"id\":1}}/>\n+    )\n+  });\n+\n+  afterEach(() => fetchMock.restore)\n+\n+  it('should show labels, fetch data from api and present', (done) => {\n+    setTimeout(() => {\n+      expect(component.find('.id')).toBePresent()\n+      expect(component.find('.name')).toBePresent()\n+      expect(component.state('stop')).toEqual({ id:1, name:\"El Greco\",created_at:\"2019-04-22T18:53:17.323Z\",updated_at:\"2019-04-22T18:53:17.323Z\" });","path":"spec/javascript/showStopTest.js","position":28,"original_position":28,"commit_id":"103b115cb63255d3897d15108eb5fa4d922171d9","original_commit_id":"738f85a5991000a493546d2b17fe1b569e654ebf","user":{"login":"CassandraNewell","id":19928431,"node_id":"MDQ6VXNlcjE5OTI4NDMx","avatar_url":"https://avatars2.githubusercontent.com/u/19928431?v=4","gravatar_id":"","url":"https://api.github.com/users/CassandraNewell","html_url":"https://github.com/CassandraNewell","followers_url":"https://api.github.com/users/CassandraNewell/followers","following_url":"https://api.github.com/users/CassandraNewell/following{/other_user}","gists_url":"https://api.github.com/users/CassandraNewell/gists{/gist_id}","starred_url":"https://api.github.com/users/CassandraNewell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CassandraNewell/subscriptions","organizations_url":"https://api.github.com/users/CassandraNewell/orgs","repos_url":"https://api.github.com/users/CassandraNewell/repos","events_url":"https://api.github.com/users/CassandraNewell/events{/privacy}","received_events_url":"https://api.github.com/users/CassandraNewell/received_events","type":"User","site_admin":false},"body":"for long objects, break into multiple lines:\r\n```suggestion\r\n      expect(component.state('stop')).toEqual({ \r\n        id:1, \r\n        name:\"El Greco\",\r\n        created_at:\"2019-04-22T18:53:17.323Z\",\r\n        updated_at:\"2019-04-22T18:53:17.323Z\"\r\n      });\r\n```","created_at":"2019-04-24T19:45:51Z","updated_at":"2019-04-24T19:46:01Z","html_url":"https://github.com/myYearOfCode/the_morning_T/pull/3#discussion_r278288464","pull_request_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/pulls/3","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/myYearOfCode/the_morning_T/pulls/comments/278288464"},"html":{"href":"https://github.com/myYearOfCode/the_morning_T/pull/3#discussion_r278288464"},"pull_request":{"href":"https://api.github.com/repos/myYearOfCode/the_morning_T/pulls/3"}},"in_reply_to_id":278282325},"pull_request":{"url":"https://api.github.com/repos/myYearOfCode/the_morning_T/pulls/3","id":273199076,"node_id":"MDExOlB1bGxSZXF1ZXN0MjczMTk5MDc2","html_url":"https://github.com/myYearOfCode/the_morning_T/pull/3","diff_url":"https://github.com/myYearOfCode/the_morning_T/pull/3.diff","patch_url":"https://github.com/myYearOfCode/the_morning_T/pull/3.patch","issue_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/issues/3","number":3,"state":"open","locked":false,"title":"Reactify show page","user":{"login":"jarmstro0","id":12171533,"node_id":"MDQ6VXNlcjEyMTcxNTMz","avatar_url":"https://avatars2.githubusercontent.com/u/12171533?v=4","gravatar_id":"","url":"https://api.github.com/users/jarmstro0","html_url":"https://github.com/jarmstro0","followers_url":"https://api.github.com/users/jarmstro0/followers","following_url":"https://api.github.com/users/jarmstro0/following{/other_user}","gists_url":"https://api.github.com/users/jarmstro0/gists{/gist_id}","starred_url":"https://api.github.com/users/jarmstro0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarmstro0/subscriptions","organizations_url":"https://api.github.com/users/jarmstro0/orgs","repos_url":"https://api.github.com/users/jarmstro0/repos","events_url":"https://api.github.com/users/jarmstro0/events{/privacy}","received_events_url":"https://api.github.com/users/jarmstro0/received_events","type":"User","site_admin":false},"body":"Added react component to the show page. Added enzyme testing with a mock fetch and a controller test for the API.","created_at":"2019-04-24T16:02:13Z","updated_at":"2019-04-24T19:46:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b797c21ac9ce8fd00c9ffb0eb4e52c3bbc86646a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/pulls/3/commits","review_comments_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/pulls/3/comments","review_comment_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/pulls/comments{/number}","comments_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/issues/3/comments","statuses_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/statuses/103b115cb63255d3897d15108eb5fa4d922171d9","head":{"label":"myYearOfCode:reactify-show-page","ref":"reactify-show-page","sha":"103b115cb63255d3897d15108eb5fa4d922171d9","user":{"login":"myYearOfCode","id":40813606,"node_id":"MDQ6VXNlcjQwODEzNjA2","avatar_url":"https://avatars1.githubusercontent.com/u/40813606?v=4","gravatar_id":"","url":"https://api.github.com/users/myYearOfCode","html_url":"https://github.com/myYearOfCode","followers_url":"https://api.github.com/users/myYearOfCode/followers","following_url":"https://api.github.com/users/myYearOfCode/following{/other_user}","gists_url":"https://api.github.com/users/myYearOfCode/gists{/gist_id}","starred_url":"https://api.github.com/users/myYearOfCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myYearOfCode/subscriptions","organizations_url":"https://api.github.com/users/myYearOfCode/orgs","repos_url":"https://api.github.com/users/myYearOfCode/repos","events_url":"https://api.github.com/users/myYearOfCode/events{/privacy}","received_events_url":"https://api.github.com/users/myYearOfCode/received_events","type":"User","site_admin":false},"repo":{"id":182814049,"node_id":"MDEwOlJlcG9zaXRvcnkxODI4MTQwNDk=","name":"the_morning_T","full_name":"myYearOfCode/the_morning_T","private":false,"owner":{"login":"myYearOfCode","id":40813606,"node_id":"MDQ6VXNlcjQwODEzNjA2","avatar_url":"https://avatars1.githubusercontent.com/u/40813606?v=4","gravatar_id":"","url":"https://api.github.com/users/myYearOfCode","html_url":"https://github.com/myYearOfCode","followers_url":"https://api.github.com/users/myYearOfCode/followers","following_url":"https://api.github.com/users/myYearOfCode/following{/other_user}","gists_url":"https://api.github.com/users/myYearOfCode/gists{/gist_id}","starred_url":"https://api.github.com/users/myYearOfCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myYearOfCode/subscriptions","organizations_url":"https://api.github.com/users/myYearOfCode/orgs","repos_url":"https://api.github.com/users/myYearOfCode/repos","events_url":"https://api.github.com/users/myYearOfCode/events{/privacy}","received_events_url":"https://api.github.com/users/myYearOfCode/received_events","type":"User","site_admin":false},"html_url":"https://github.com/myYearOfCode/the_morning_T","description":"A review site for T stops and stations.","fork":false,"url":"https://api.github.com/repos/myYearOfCode/the_morning_T","forks_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/forks","keys_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/keys{/key_id}","collaborators_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/teams","hooks_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/hooks","issue_events_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/issues/events{/number}","events_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/events","assignees_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/assignees{/user}","branches_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/branches{/branch}","tags_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/tags","blobs_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/git/refs{/sha}","trees_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/git/trees{/sha}","statuses_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/statuses/{sha}","languages_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/languages","stargazers_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/stargazers","contributors_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/contributors","subscribers_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/subscribers","subscription_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/subscription","commits_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/commits{/sha}","git_commits_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/git/commits{/sha}","comments_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/comments{/number}","issue_comment_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/issues/comments{/number}","contents_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/contents/{+path}","compare_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/compare/{base}...{head}","merges_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/merges","archive_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/downloads","issues_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/issues{/number}","pulls_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/pulls{/number}","milestones_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/milestones{/number}","notifications_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/labels{/name}","releases_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/releases{/id}","deployments_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/deployments","created_at":"2019-04-22T15:19:26Z","updated_at":"2019-04-23T16:11:30Z","pushed_at":"2019-04-24T19:42:14Z","git_url":"git://github.com/myYearOfCode/the_morning_T.git","ssh_url":"git@github.com:myYearOfCode/the_morning_T.git","clone_url":"https://github.com/myYearOfCode/the_morning_T.git","svn_url":"https://github.com/myYearOfCode/the_morning_T","homepage":null,"size":458,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"myYearOfCode:master","ref":"master","sha":"0d8686ffd1ee0a3fc0e80ff0c4a36bd681061784","user":{"login":"myYearOfCode","id":40813606,"node_id":"MDQ6VXNlcjQwODEzNjA2","avatar_url":"https://avatars1.githubusercontent.com/u/40813606?v=4","gravatar_id":"","url":"https://api.github.com/users/myYearOfCode","html_url":"https://github.com/myYearOfCode","followers_url":"https://api.github.com/users/myYearOfCode/followers","following_url":"https://api.github.com/users/myYearOfCode/following{/other_user}","gists_url":"https://api.github.com/users/myYearOfCode/gists{/gist_id}","starred_url":"https://api.github.com/users/myYearOfCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myYearOfCode/subscriptions","organizations_url":"https://api.github.com/users/myYearOfCode/orgs","repos_url":"https://api.github.com/users/myYearOfCode/repos","events_url":"https://api.github.com/users/myYearOfCode/events{/privacy}","received_events_url":"https://api.github.com/users/myYearOfCode/received_events","type":"User","site_admin":false},"repo":{"id":182814049,"node_id":"MDEwOlJlcG9zaXRvcnkxODI4MTQwNDk=","name":"the_morning_T","full_name":"myYearOfCode/the_morning_T","private":false,"owner":{"login":"myYearOfCode","id":40813606,"node_id":"MDQ6VXNlcjQwODEzNjA2","avatar_url":"https://avatars1.githubusercontent.com/u/40813606?v=4","gravatar_id":"","url":"https://api.github.com/users/myYearOfCode","html_url":"https://github.com/myYearOfCode","followers_url":"https://api.github.com/users/myYearOfCode/followers","following_url":"https://api.github.com/users/myYearOfCode/following{/other_user}","gists_url":"https://api.github.com/users/myYearOfCode/gists{/gist_id}","starred_url":"https://api.github.com/users/myYearOfCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myYearOfCode/subscriptions","organizations_url":"https://api.github.com/users/myYearOfCode/orgs","repos_url":"https://api.github.com/users/myYearOfCode/repos","events_url":"https://api.github.com/users/myYearOfCode/events{/privacy}","received_events_url":"https://api.github.com/users/myYearOfCode/received_events","type":"User","site_admin":false},"html_url":"https://github.com/myYearOfCode/the_morning_T","description":"A review site for T stops and stations.","fork":false,"url":"https://api.github.com/repos/myYearOfCode/the_morning_T","forks_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/forks","keys_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/keys{/key_id}","collaborators_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/teams","hooks_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/hooks","issue_events_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/issues/events{/number}","events_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/events","assignees_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/assignees{/user}","branches_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/branches{/branch}","tags_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/tags","blobs_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/git/refs{/sha}","trees_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/git/trees{/sha}","statuses_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/statuses/{sha}","languages_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/languages","stargazers_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/stargazers","contributors_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/contributors","subscribers_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/subscribers","subscription_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/subscription","commits_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/commits{/sha}","git_commits_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/git/commits{/sha}","comments_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/comments{/number}","issue_comment_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/issues/comments{/number}","contents_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/contents/{+path}","compare_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/compare/{base}...{head}","merges_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/merges","archive_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/downloads","issues_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/issues{/number}","pulls_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/pulls{/number}","milestones_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/milestones{/number}","notifications_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/labels{/name}","releases_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/releases{/id}","deployments_url":"https://api.github.com/repos/myYearOfCode/the_morning_T/deployments","created_at":"2019-04-22T15:19:26Z","updated_at":"2019-04-23T16:11:30Z","pushed_at":"2019-04-24T19:42:14Z","git_url":"git://github.com/myYearOfCode/the_morning_T.git","ssh_url":"git@github.com:myYearOfCode/the_morning_T.git","clone_url":"https://github.com/myYearOfCode/the_morning_T.git","svn_url":"https://github.com/myYearOfCode/the_morning_T","homepage":null,"size":458,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/myYearOfCode/the_morning_T/pulls/3"},"html":{"href":"https://github.com/myYearOfCode/the_morning_T/pull/3"},"issue":{"href":"https://api.github.com/repos/myYearOfCode/the_morning_T/issues/3"},"comments":{"href":"https://api.github.com/repos/myYearOfCode/the_morning_T/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/myYearOfCode/the_morning_T/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/myYearOfCode/the_morning_T/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/myYearOfCode/the_morning_T/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/myYearOfCode/the_morning_T/statuses/103b115cb63255d3897d15108eb5fa4d922171d9"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"CassandraNewell"}}