{"action":"created","comment":{"url":"https://api.github.com/repos/thesilverspoon/reservations-component/pulls/comments/171403705","pull_request_review_id":100251082,"id":171403705,"diff_hunk":"@@ -3,8 +3,67 @@ import { shallow } from 'enzyme';\n \n import Reservation from './Reservation';\n \n+jest.mock('../lib/helper');\n+\n describe('Reservation Component', () => {\n+  afterAll(() => {\n+    jest.unmock('../lib/helper');\n+  });\n+\n   test('should render correctly', () => {\n-    expect(shallow(<Reservation id={100} />)).toMatchSnapshot();\n+    expect(shallow(<Reservation id={305} />)).toMatchSnapshot();\n+  });\n+\n+  test('should setName correctly', () => {\n+    const component = shallow(<Reservation id={305} />);\n+    component.instance().setName('Sideshow Bob');\n+    expect(component.state().name).toBe('Sideshow Bob');","path":"client/src/components/Reservation.test.jsx","position":19,"original_position":19,"commit_id":"2edc503cc2e20fcd4a4032ad67f64a56e2d8f33b","original_commit_id":"2edc503cc2e20fcd4a4032ad67f64a56e2d8f33b","user":{"login":"MatGBX","id":32995048,"avatar_url":"https://avatars3.githubusercontent.com/u/32995048?v=4","gravatar_id":"","url":"https://api.github.com/users/MatGBX","html_url":"https://github.com/MatGBX","followers_url":"https://api.github.com/users/MatGBX/followers","following_url":"https://api.github.com/users/MatGBX/following{/other_user}","gists_url":"https://api.github.com/users/MatGBX/gists{/gist_id}","starred_url":"https://api.github.com/users/MatGBX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatGBX/subscriptions","organizations_url":"https://api.github.com/users/MatGBX/orgs","repos_url":"https://api.github.com/users/MatGBX/repos","events_url":"https://api.github.com/users/MatGBX/events{/privacy}","received_events_url":"https://api.github.com/users/MatGBX/received_events","type":"User","site_admin":false},"body":"haha love the simpsons ref","created_at":"2018-02-28T22:17:10Z","updated_at":"2018-02-28T22:17:10Z","html_url":"https://github.com/thesilverspoon/reservations-component/pull/25#discussion_r171403705","pull_request_url":"https://api.github.com/repos/thesilverspoon/reservations-component/pulls/25","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/thesilverspoon/reservations-component/pulls/comments/171403705"},"html":{"href":"https://github.com/thesilverspoon/reservations-component/pull/25#discussion_r171403705"},"pull_request":{"href":"https://api.github.com/repos/thesilverspoon/reservations-component/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/thesilverspoon/reservations-component/pulls/25","id":172055436,"html_url":"https://github.com/thesilverspoon/reservations-component/pull/25","diff_url":"https://github.com/thesilverspoon/reservations-component/pull/25.diff","patch_url":"https://github.com/thesilverspoon/reservations-component/pull/25.patch","issue_url":"https://api.github.com/repos/thesilverspoon/reservations-component/issues/25","number":25,"state":"open","locked":false,"title":"Feat/client gets real info","user":{"login":"tmkuba","id":17801759,"avatar_url":"https://avatars2.githubusercontent.com/u/17801759?v=4","gravatar_id":"","url":"https://api.github.com/users/tmkuba","html_url":"https://github.com/tmkuba","followers_url":"https://api.github.com/users/tmkuba/followers","following_url":"https://api.github.com/users/tmkuba/following{/other_user}","gists_url":"https://api.github.com/users/tmkuba/gists{/gist_id}","starred_url":"https://api.github.com/users/tmkuba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmkuba/subscriptions","organizations_url":"https://api.github.com/users/tmkuba/orgs","repos_url":"https://api.github.com/users/tmkuba/repos","events_url":"https://api.github.com/users/tmkuba/events{/privacy}","received_events_url":"https://api.github.com/users/tmkuba/received_events","type":"User","site_admin":false},"body":"https://trello.com/c/1ec8vyG7\r\n\r\nrefactored and added more tests","created_at":"2018-02-28T19:54:34Z","updated_at":"2018-02-28T22:17:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebefe0de919b41012352a6b93f7f7af5d8741795","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/thesilverspoon/reservations-component/pulls/25/commits","review_comments_url":"https://api.github.com/repos/thesilverspoon/reservations-component/pulls/25/comments","review_comment_url":"https://api.github.com/repos/thesilverspoon/reservations-component/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thesilverspoon/reservations-component/issues/25/comments","statuses_url":"https://api.github.com/repos/thesilverspoon/reservations-component/statuses/2edc503cc2e20fcd4a4032ad67f64a56e2d8f33b","head":{"label":"thesilverspoon:feat/client_gets_real_info","ref":"feat/client_gets_real_info","sha":"2edc503cc2e20fcd4a4032ad67f64a56e2d8f33b","user":{"login":"thesilverspoon","id":36716959,"avatar_url":"https://avatars3.githubusercontent.com/u/36716959?v=4","gravatar_id":"","url":"https://api.github.com/users/thesilverspoon","html_url":"https://github.com/thesilverspoon","followers_url":"https://api.github.com/users/thesilverspoon/followers","following_url":"https://api.github.com/users/thesilverspoon/following{/other_user}","gists_url":"https://api.github.com/users/thesilverspoon/gists{/gist_id}","starred_url":"https://api.github.com/users/thesilverspoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesilverspoon/subscriptions","organizations_url":"https://api.github.com/users/thesilverspoon/orgs","repos_url":"https://api.github.com/users/thesilverspoon/repos","events_url":"https://api.github.com/users/thesilverspoon/events{/privacy}","received_events_url":"https://api.github.com/users/thesilverspoon/received_events","type":"Organization","site_admin":false},"repo":{"id":122429487,"name":"reservations-component","full_name":"thesilverspoon/reservations-component","owner":{"login":"thesilverspoon","id":36716959,"avatar_url":"https://avatars3.githubusercontent.com/u/36716959?v=4","gravatar_id":"","url":"https://api.github.com/users/thesilverspoon","html_url":"https://github.com/thesilverspoon","followers_url":"https://api.github.com/users/thesilverspoon/followers","following_url":"https://api.github.com/users/thesilverspoon/following{/other_user}","gists_url":"https://api.github.com/users/thesilverspoon/gists{/gist_id}","starred_url":"https://api.github.com/users/thesilverspoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesilverspoon/subscriptions","organizations_url":"https://api.github.com/users/thesilverspoon/orgs","repos_url":"https://api.github.com/users/thesilverspoon/repos","events_url":"https://api.github.com/users/thesilverspoon/events{/privacy}","received_events_url":"https://api.github.com/users/thesilverspoon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thesilverspoon/reservations-component","description":null,"fork":false,"url":"https://api.github.com/repos/thesilverspoon/reservations-component","forks_url":"https://api.github.com/repos/thesilverspoon/reservations-component/forks","keys_url":"https://api.github.com/repos/thesilverspoon/reservations-component/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thesilverspoon/reservations-component/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thesilverspoon/reservations-component/teams","hooks_url":"https://api.github.com/repos/thesilverspoon/reservations-component/hooks","issue_events_url":"https://api.github.com/repos/thesilverspoon/reservations-component/issues/events{/number}","events_url":"https://api.github.com/repos/thesilverspoon/reservations-component/events","assignees_url":"https://api.github.com/repos/thesilverspoon/reservations-component/assignees{/user}","branches_url":"https://api.github.com/repos/thesilverspoon/reservations-component/branches{/branch}","tags_url":"https://api.github.com/repos/thesilverspoon/reservations-component/tags","blobs_url":"https://api.github.com/repos/thesilverspoon/reservations-component/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thesilverspoon/reservations-component/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thesilverspoon/reservations-component/git/refs{/sha}","trees_url":"https://api.github.com/repos/thesilverspoon/reservations-component/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thesilverspoon/reservations-component/statuses/{sha}","languages_url":"https://api.github.com/repos/thesilverspoon/reservations-component/languages","stargazers_url":"https://api.github.com/repos/thesilverspoon/reservations-component/stargazers","contributors_url":"https://api.github.com/repos/thesilverspoon/reservations-component/contributors","subscribers_url":"https://api.github.com/repos/thesilverspoon/reservations-component/subscribers","subscription_url":"https://api.github.com/repos/thesilverspoon/reservations-component/subscription","commits_url":"https://api.github.com/repos/thesilverspoon/reservations-component/commits{/sha}","git_commits_url":"https://api.github.com/repos/thesilverspoon/reservations-component/git/commits{/sha}","comments_url":"https://api.github.com/repos/thesilverspoon/reservations-component/comments{/number}","issue_comment_url":"https://api.github.com/repos/thesilverspoon/reservations-component/issues/comments{/number}","contents_url":"https://api.github.com/repos/thesilverspoon/reservations-component/contents/{+path}","compare_url":"https://api.github.com/repos/thesilverspoon/reservations-component/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thesilverspoon/reservations-component/merges","archive_url":"https://api.github.com/repos/thesilverspoon/reservations-component/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thesilverspoon/reservations-component/downloads","issues_url":"https://api.github.com/repos/thesilverspoon/reservations-component/issues{/number}","pulls_url":"https://api.github.com/repos/thesilverspoon/reservations-component/pulls{/number}","milestones_url":"https://api.github.com/repos/thesilverspoon/reservations-component/milestones{/number}","notifications_url":"https://api.github.com/repos/thesilverspoon/reservations-component/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thesilverspoon/reservations-component/labels{/name}","releases_url":"https://api.github.com/repos/thesilverspoon/reservations-component/releases{/id}","deployments_url":"https://api.github.com/repos/thesilverspoon/reservations-component/deployments","created_at":"2018-02-22T04:12:21Z","updated_at":"2018-02-22T18:49:53Z","pushed_at":"2018-02-28T22:12:55Z","git_url":"git://github.com/thesilverspoon/reservations-component.git","ssh_url":"git@github.com:thesilverspoon/reservations-component.git","clone_url":"https://github.com/thesilverspoon/reservations-component.git","svn_url":"https://github.com/thesilverspoon/reservations-component","homepage":null,"size":473,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"thesilverspoon:master","ref":"master","sha":"5d265b0faebfebf64a627474f95c37c70f0f0dff","user":{"login":"thesilverspoon","id":36716959,"avatar_url":"https://avatars3.githubusercontent.com/u/36716959?v=4","gravatar_id":"","url":"https://api.github.com/users/thesilverspoon","html_url":"https://github.com/thesilverspoon","followers_url":"https://api.github.com/users/thesilverspoon/followers","following_url":"https://api.github.com/users/thesilverspoon/following{/other_user}","gists_url":"https://api.github.com/users/thesilverspoon/gists{/gist_id}","starred_url":"https://api.github.com/users/thesilverspoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesilverspoon/subscriptions","organizations_url":"https://api.github.com/users/thesilverspoon/orgs","repos_url":"https://api.github.com/users/thesilverspoon/repos","events_url":"https://api.github.com/users/thesilverspoon/events{/privacy}","received_events_url":"https://api.github.com/users/thesilverspoon/received_events","type":"Organization","site_admin":false},"repo":{"id":122429487,"name":"reservations-component","full_name":"thesilverspoon/reservations-component","owner":{"login":"thesilverspoon","id":36716959,"avatar_url":"https://avatars3.githubusercontent.com/u/36716959?v=4","gravatar_id":"","url":"https://api.github.com/users/thesilverspoon","html_url":"https://github.com/thesilverspoon","followers_url":"https://api.github.com/users/thesilverspoon/followers","following_url":"https://api.github.com/users/thesilverspoon/following{/other_user}","gists_url":"https://api.github.com/users/thesilverspoon/gists{/gist_id}","starred_url":"https://api.github.com/users/thesilverspoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesilverspoon/subscriptions","organizations_url":"https://api.github.com/users/thesilverspoon/orgs","repos_url":"https://api.github.com/users/thesilverspoon/repos","events_url":"https://api.github.com/users/thesilverspoon/events{/privacy}","received_events_url":"https://api.github.com/users/thesilverspoon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thesilverspoon/reservations-component","description":null,"fork":false,"url":"https://api.github.com/repos/thesilverspoon/reservations-component","forks_url":"https://api.github.com/repos/thesilverspoon/reservations-component/forks","keys_url":"https://api.github.com/repos/thesilverspoon/reservations-component/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thesilverspoon/reservations-component/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thesilverspoon/reservations-component/teams","hooks_url":"https://api.github.com/repos/thesilverspoon/reservations-component/hooks","issue_events_url":"https://api.github.com/repos/thesilverspoon/reservations-component/issues/events{/number}","events_url":"https://api.github.com/repos/thesilverspoon/reservations-component/events","assignees_url":"https://api.github.com/repos/thesilverspoon/reservations-component/assignees{/user}","branches_url":"https://api.github.com/repos/thesilverspoon/reservations-component/branches{/branch}","tags_url":"https://api.github.com/repos/thesilverspoon/reservations-component/tags","blobs_url":"https://api.github.com/repos/thesilverspoon/reservations-component/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thesilverspoon/reservations-component/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thesilverspoon/reservations-component/git/refs{/sha}","trees_url":"https://api.github.com/repos/thesilverspoon/reservations-component/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thesilverspoon/reservations-component/statuses/{sha}","languages_url":"https://api.github.com/repos/thesilverspoon/reservations-component/languages","stargazers_url":"https://api.github.com/repos/thesilverspoon/reservations-component/stargazers","contributors_url":"https://api.github.com/repos/thesilverspoon/reservations-component/contributors","subscribers_url":"https://api.github.com/repos/thesilverspoon/reservations-component/subscribers","subscription_url":"https://api.github.com/repos/thesilverspoon/reservations-component/subscription","commits_url":"https://api.github.com/repos/thesilverspoon/reservations-component/commits{/sha}","git_commits_url":"https://api.github.com/repos/thesilverspoon/reservations-component/git/commits{/sha}","comments_url":"https://api.github.com/repos/thesilverspoon/reservations-component/comments{/number}","issue_comment_url":"https://api.github.com/repos/thesilverspoon/reservations-component/issues/comments{/number}","contents_url":"https://api.github.com/repos/thesilverspoon/reservations-component/contents/{+path}","compare_url":"https://api.github.com/repos/thesilverspoon/reservations-component/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thesilverspoon/reservations-component/merges","archive_url":"https://api.github.com/repos/thesilverspoon/reservations-component/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thesilverspoon/reservations-component/downloads","issues_url":"https://api.github.com/repos/thesilverspoon/reservations-component/issues{/number}","pulls_url":"https://api.github.com/repos/thesilverspoon/reservations-component/pulls{/number}","milestones_url":"https://api.github.com/repos/thesilverspoon/reservations-component/milestones{/number}","notifications_url":"https://api.github.com/repos/thesilverspoon/reservations-component/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thesilverspoon/reservations-component/labels{/name}","releases_url":"https://api.github.com/repos/thesilverspoon/reservations-component/releases{/id}","deployments_url":"https://api.github.com/repos/thesilverspoon/reservations-component/deployments","created_at":"2018-02-22T04:12:21Z","updated_at":"2018-02-22T18:49:53Z","pushed_at":"2018-02-28T22:12:55Z","git_url":"git://github.com/thesilverspoon/reservations-component.git","ssh_url":"git@github.com:thesilverspoon/reservations-component.git","clone_url":"https://github.com/thesilverspoon/reservations-component.git","svn_url":"https://github.com/thesilverspoon/reservations-component","homepage":null,"size":473,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thesilverspoon/reservations-component/pulls/25"},"html":{"href":"https://github.com/thesilverspoon/reservations-component/pull/25"},"issue":{"href":"https://api.github.com/repos/thesilverspoon/reservations-component/issues/25"},"comments":{"href":"https://api.github.com/repos/thesilverspoon/reservations-component/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/thesilverspoon/reservations-component/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/thesilverspoon/reservations-component/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thesilverspoon/reservations-component/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/thesilverspoon/reservations-component/statuses/2edc503cc2e20fcd4a4032ad67f64a56e2d8f33b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"MatGBX"}}