{"action":"created","comment":{"url":"https://api.github.com/repos/LambdaSchool/React-Testing/pulls/comments/229018778","pull_request_review_id":169418624,"id":229018778,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTAxODc3OA==","diff_hunk":"@@ -1,15 +1,41 @@\n-import React from 'react';\n-import ReactDOM from 'react-dom';\n-import Enzyme, { shallow } from 'enzyme';\n-import Adapter from 'enzyme-adapter-react-16';\n+import React from \"react\";\n+import ReactDOM from \"react-dom\";\n+import Enzyme, { shallow } from \"enzyme\";\n+import Adapter from \"enzyme-adapter-react-16\";\n \n-import Button from '../components/Button/Button';\n+import Button from \"../components/Button/Button\";\n \n Enzyme.configure({ adapter: new Adapter() });\n \n-describe('<Button />', () => {\n-  it('renders without crashing', () => {\n-    const div = document.createElement('div');\n+describe(\"<Button />\", () => {\n+  it(\"renders without crashing\", () => {\n+    const div = document.createElement(\"div\");\n     ReactDOM.render(<Button />, div);\n   });\n+\n+  it(\"renders an button\", () => {\n+    const wrapper = shallow(<Button />);\n+\n+    const elements = wrapper.find(\"button\");\n+\n+    expect(elements.length).toBe(1);\n+  });\n+\n+  it(\"renders an div\", () => {\n+    const wrapper = shallow(<Button />);\n+\n+    const elements = wrapper.find(\"div\");\n+\n+    expect(elements.length).toBe(1);\n+  });\n+\n+  it(\"renders an orange button\", () => {\n+    const component = shallow(<Button orange />);\n+    expect(component.find(\".orange\")).toHaveLength(1);\n+  });\n+\n+  it(\"renders a wide button\", () => {\n+    const component = shallow(<Button wide />);\n+    expect(component.find(\".wide\")).toHaveLength(1);\n+  });","path":"src/__tests__/Button.spec.js","position":48,"original_position":48,"commit_id":"fd83ce545cd0dc1c52a47ad2bdb9b896a07d082e","original_commit_id":"fd83ce545cd0dc1c52a47ad2bdb9b896a07d082e","user":{"login":"Bradiowave","id":37812200,"node_id":"MDQ6VXNlcjM3ODEyMjAw","avatar_url":"https://avatars0.githubusercontent.com/u/37812200?v=4","gravatar_id":"","url":"https://api.github.com/users/Bradiowave","html_url":"https://github.com/Bradiowave","followers_url":"https://api.github.com/users/Bradiowave/followers","following_url":"https://api.github.com/users/Bradiowave/following{/other_user}","gists_url":"https://api.github.com/users/Bradiowave/gists{/gist_id}","starred_url":"https://api.github.com/users/Bradiowave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bradiowave/subscriptions","organizations_url":"https://api.github.com/users/Bradiowave/orgs","repos_url":"https://api.github.com/users/Bradiowave/repos","events_url":"https://api.github.com/users/Bradiowave/events{/privacy}","received_events_url":"https://api.github.com/users/Bradiowave/received_events","type":"User","site_admin":false},"body":"Good tests for each button type.","created_at":"2018-10-29T17:13:04Z","updated_at":"2018-10-29T17:13:05Z","html_url":"https://github.com/LambdaSchool/React-Testing/pull/251#discussion_r229018778","pull_request_url":"https://api.github.com/repos/LambdaSchool/React-Testing/pulls/251","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/React-Testing/pulls/comments/229018778"},"html":{"href":"https://github.com/LambdaSchool/React-Testing/pull/251#discussion_r229018778"},"pull_request":{"href":"https://api.github.com/repos/LambdaSchool/React-Testing/pulls/251"}}},"pull_request":{"url":"https://api.github.com/repos/LambdaSchool/React-Testing/pulls/251","id":225573885,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NTczODg1","html_url":"https://github.com/LambdaSchool/React-Testing/pull/251","diff_url":"https://github.com/LambdaSchool/React-Testing/pull/251.diff","patch_url":"https://github.com/LambdaSchool/React-Testing/pull/251.patch","issue_url":"https://api.github.com/repos/LambdaSchool/React-Testing/issues/251","number":251,"state":"open","locked":false,"title":"Caitlin G's React Testing","user":{"login":"caitlin-g","id":33031338,"node_id":"MDQ6VXNlcjMzMDMxMzM4","avatar_url":"https://avatars0.githubusercontent.com/u/33031338?v=4","gravatar_id":"","url":"https://api.github.com/users/caitlin-g","html_url":"https://github.com/caitlin-g","followers_url":"https://api.github.com/users/caitlin-g/followers","following_url":"https://api.github.com/users/caitlin-g/following{/other_user}","gists_url":"https://api.github.com/users/caitlin-g/gists{/gist_id}","starred_url":"https://api.github.com/users/caitlin-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caitlin-g/subscriptions","organizations_url":"https://api.github.com/users/caitlin-g/orgs","repos_url":"https://api.github.com/users/caitlin-g/repos","events_url":"https://api.github.com/users/caitlin-g/events{/privacy}","received_events_url":"https://api.github.com/users/caitlin-g/received_events","type":"User","site_admin":false},"body":"@bradiowave","created_at":"2018-10-24T22:46:46Z","updated_at":"2018-10-29T17:13:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"786a8f363ef5a040b32301f87b48f272cefd965c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LambdaSchool/React-Testing/pulls/251/commits","review_comments_url":"https://api.github.com/repos/LambdaSchool/React-Testing/pulls/251/comments","review_comment_url":"https://api.github.com/repos/LambdaSchool/React-Testing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LambdaSchool/React-Testing/issues/251/comments","statuses_url":"https://api.github.com/repos/LambdaSchool/React-Testing/statuses/fd83ce545cd0dc1c52a47ad2bdb9b896a07d082e","head":{"label":"caitlin-g:master","ref":"master","sha":"fd83ce545cd0dc1c52a47ad2bdb9b896a07d082e","user":{"login":"caitlin-g","id":33031338,"node_id":"MDQ6VXNlcjMzMDMxMzM4","avatar_url":"https://avatars0.githubusercontent.com/u/33031338?v=4","gravatar_id":"","url":"https://api.github.com/users/caitlin-g","html_url":"https://github.com/caitlin-g","followers_url":"https://api.github.com/users/caitlin-g/followers","following_url":"https://api.github.com/users/caitlin-g/following{/other_user}","gists_url":"https://api.github.com/users/caitlin-g/gists{/gist_id}","starred_url":"https://api.github.com/users/caitlin-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caitlin-g/subscriptions","organizations_url":"https://api.github.com/users/caitlin-g/orgs","repos_url":"https://api.github.com/users/caitlin-g/repos","events_url":"https://api.github.com/users/caitlin-g/events{/privacy}","received_events_url":"https://api.github.com/users/caitlin-g/received_events","type":"User","site_admin":false},"repo":{"id":154559931,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ1NTk5MzE=","name":"React-Testing","full_name":"caitlin-g/React-Testing","private":false,"owner":{"login":"caitlin-g","id":33031338,"node_id":"MDQ6VXNlcjMzMDMxMzM4","avatar_url":"https://avatars0.githubusercontent.com/u/33031338?v=4","gravatar_id":"","url":"https://api.github.com/users/caitlin-g","html_url":"https://github.com/caitlin-g","followers_url":"https://api.github.com/users/caitlin-g/followers","following_url":"https://api.github.com/users/caitlin-g/following{/other_user}","gists_url":"https://api.github.com/users/caitlin-g/gists{/gist_id}","starred_url":"https://api.github.com/users/caitlin-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caitlin-g/subscriptions","organizations_url":"https://api.github.com/users/caitlin-g/orgs","repos_url":"https://api.github.com/users/caitlin-g/repos","events_url":"https://api.github.com/users/caitlin-g/events{/privacy}","received_events_url":"https://api.github.com/users/caitlin-g/received_events","type":"User","site_admin":false},"html_url":"https://github.com/caitlin-g/React-Testing","description":"Testing a React App using Jest and Enzyme","fork":true,"url":"https://api.github.com/repos/caitlin-g/React-Testing","forks_url":"https://api.github.com/repos/caitlin-g/React-Testing/forks","keys_url":"https://api.github.com/repos/caitlin-g/React-Testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caitlin-g/React-Testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caitlin-g/React-Testing/teams","hooks_url":"https://api.github.com/repos/caitlin-g/React-Testing/hooks","issue_events_url":"https://api.github.com/repos/caitlin-g/React-Testing/issues/events{/number}","events_url":"https://api.github.com/repos/caitlin-g/React-Testing/events","assignees_url":"https://api.github.com/repos/caitlin-g/React-Testing/assignees{/user}","branches_url":"https://api.github.com/repos/caitlin-g/React-Testing/branches{/branch}","tags_url":"https://api.github.com/repos/caitlin-g/React-Testing/tags","blobs_url":"https://api.github.com/repos/caitlin-g/React-Testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caitlin-g/React-Testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caitlin-g/React-Testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/caitlin-g/React-Testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caitlin-g/React-Testing/statuses/{sha}","languages_url":"https://api.github.com/repos/caitlin-g/React-Testing/languages","stargazers_url":"https://api.github.com/repos/caitlin-g/React-Testing/stargazers","contributors_url":"https://api.github.com/repos/caitlin-g/React-Testing/contributors","subscribers_url":"https://api.github.com/repos/caitlin-g/React-Testing/subscribers","subscription_url":"https://api.github.com/repos/caitlin-g/React-Testing/subscription","commits_url":"https://api.github.com/repos/caitlin-g/React-Testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/caitlin-g/React-Testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/caitlin-g/React-Testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/caitlin-g/React-Testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/caitlin-g/React-Testing/contents/{+path}","compare_url":"https://api.github.com/repos/caitlin-g/React-Testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caitlin-g/React-Testing/merges","archive_url":"https://api.github.com/repos/caitlin-g/React-Testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caitlin-g/React-Testing/downloads","issues_url":"https://api.github.com/repos/caitlin-g/React-Testing/issues{/number}","pulls_url":"https://api.github.com/repos/caitlin-g/React-Testing/pulls{/number}","milestones_url":"https://api.github.com/repos/caitlin-g/React-Testing/milestones{/number}","notifications_url":"https://api.github.com/repos/caitlin-g/React-Testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caitlin-g/React-Testing/labels{/name}","releases_url":"https://api.github.com/repos/caitlin-g/React-Testing/releases{/id}","deployments_url":"https://api.github.com/repos/caitlin-g/React-Testing/deployments","created_at":"2018-10-24T19:46:44Z","updated_at":"2018-10-24T21:44:57Z","pushed_at":"2018-10-24T21:44:56Z","git_url":"git://github.com/caitlin-g/React-Testing.git","ssh_url":"git@github.com:caitlin-g/React-Testing.git","clone_url":"https://github.com/caitlin-g/React-Testing.git","svn_url":"https://github.com/caitlin-g/React-Testing","homepage":null,"size":281,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LambdaSchool:master","ref":"master","sha":"2b7b131a9c6927eca243eb39d3ba8a98d19a8920","user":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":126534488,"node_id":"MDEwOlJlcG9zaXRvcnkxMjY1MzQ0ODg=","name":"React-Testing","full_name":"LambdaSchool/React-Testing","private":false,"owner":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/LambdaSchool/React-Testing","description":"Testing a React App using Jest and Enzyme","fork":false,"url":"https://api.github.com/repos/LambdaSchool/React-Testing","forks_url":"https://api.github.com/repos/LambdaSchool/React-Testing/forks","keys_url":"https://api.github.com/repos/LambdaSchool/React-Testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LambdaSchool/React-Testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LambdaSchool/React-Testing/teams","hooks_url":"https://api.github.com/repos/LambdaSchool/React-Testing/hooks","issue_events_url":"https://api.github.com/repos/LambdaSchool/React-Testing/issues/events{/number}","events_url":"https://api.github.com/repos/LambdaSchool/React-Testing/events","assignees_url":"https://api.github.com/repos/LambdaSchool/React-Testing/assignees{/user}","branches_url":"https://api.github.com/repos/LambdaSchool/React-Testing/branches{/branch}","tags_url":"https://api.github.com/repos/LambdaSchool/React-Testing/tags","blobs_url":"https://api.github.com/repos/LambdaSchool/React-Testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LambdaSchool/React-Testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LambdaSchool/React-Testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/LambdaSchool/React-Testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LambdaSchool/React-Testing/statuses/{sha}","languages_url":"https://api.github.com/repos/LambdaSchool/React-Testing/languages","stargazers_url":"https://api.github.com/repos/LambdaSchool/React-Testing/stargazers","contributors_url":"https://api.github.com/repos/LambdaSchool/React-Testing/contributors","subscribers_url":"https://api.github.com/repos/LambdaSchool/React-Testing/subscribers","subscription_url":"https://api.github.com/repos/LambdaSchool/React-Testing/subscription","commits_url":"https://api.github.com/repos/LambdaSchool/React-Testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/LambdaSchool/React-Testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/LambdaSchool/React-Testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/LambdaSchool/React-Testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/LambdaSchool/React-Testing/contents/{+path}","compare_url":"https://api.github.com/repos/LambdaSchool/React-Testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LambdaSchool/React-Testing/merges","archive_url":"https://api.github.com/repos/LambdaSchool/React-Testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LambdaSchool/React-Testing/downloads","issues_url":"https://api.github.com/repos/LambdaSchool/React-Testing/issues{/number}","pulls_url":"https://api.github.com/repos/LambdaSchool/React-Testing/pulls{/number}","milestones_url":"https://api.github.com/repos/LambdaSchool/React-Testing/milestones{/number}","notifications_url":"https://api.github.com/repos/LambdaSchool/React-Testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LambdaSchool/React-Testing/labels{/name}","releases_url":"https://api.github.com/repos/LambdaSchool/React-Testing/releases{/id}","deployments_url":"https://api.github.com/repos/LambdaSchool/React-Testing/deployments","created_at":"2018-03-23T20:13:54Z","updated_at":"2018-10-24T14:22:44Z","pushed_at":"2018-10-26T14:26:40Z","git_url":"git://github.com/LambdaSchool/React-Testing.git","ssh_url":"git@github.com:LambdaSchool/React-Testing.git","clone_url":"https://github.com/LambdaSchool/React-Testing.git","svn_url":"https://github.com/LambdaSchool/React-Testing","homepage":null,"size":210,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":297,"mirror_url":null,"archived":false,"open_issues_count":257,"license":null,"forks":297,"open_issues":257,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/React-Testing/pulls/251"},"html":{"href":"https://github.com/LambdaSchool/React-Testing/pull/251"},"issue":{"href":"https://api.github.com/repos/LambdaSchool/React-Testing/issues/251"},"comments":{"href":"https://api.github.com/repos/LambdaSchool/React-Testing/issues/251/comments"},"review_comments":{"href":"https://api.github.com/repos/LambdaSchool/React-Testing/pulls/251/comments"},"review_comment":{"href":"https://api.github.com/repos/LambdaSchool/React-Testing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LambdaSchool/React-Testing/pulls/251/commits"},"statuses":{"href":"https://api.github.com/repos/LambdaSchool/React-Testing/statuses/fd83ce545cd0dc1c52a47ad2bdb9b896a07d082e"}},"author_association":"NONE"}}
{"actor":{"display_login":"Bradiowave"}}