{"action":"created","comment":{"url":"https://api.github.com/repos/victorjambo/WeConnect-React/pulls/comments/184866380","pull_request_review_id":116150023,"id":184866380,"diff_hunk":"@@ -0,0 +1,58 @@\n+import React from 'react';\n+import { configure, shallow } from 'enzyme';\n+import Adapter from 'enzyme-adapter-react-16';\n+import { expect } from 'chai';\n+import Textarea from '../common/ElementComponents/Textarea';\n+import ButtonAuth from '../common/ElementComponents/ButtonAuth';\n+import Input from '../common/ElementComponents/Input';\n+import DropzoneContainer from '../common/ElementComponents/DropzoneContainer';\n+import { Buttons } from '../common/ElementComponents/Business';\n+\n+configure({ adapter: new Adapter() });\n+\n+describe('<DropzoneContainer />', () =>  {\n+  it('Test Render DropzoneContainer Component', () => {\n+    const wrapper = shallow(<DropzoneContainer onDrop={()=>{}} preview=\"/\"/>);\n+    expect(wrapper.find('.col-lg-3')).to.have.length(1);\n+    wrapper.setProps({ logo: '/' });\n+    expect(wrapper.find('.img-responsive')).to.have.length(2);\n+  });\n+});\n+\n+describe('<Textarea />', () =>  {\n+  it('Test Render Textarea Component', () => {\n+    const wrapper = shallow(<Textarea name=\"\" error=\"test\" value=\"\" placeholder=\"\" onChange={() => {} }/>);\n+    expect(wrapper.find('.form-group')).to.have.length(1);\n+    expect(wrapper.find('.invalid-feedback').text()).to.equal('test');\n+  });\n+});\n+\n+describe('<ButtonAuth />', () =>  {\n+  it('Test Render ButtonAuth Component', () => {\n+    const wrapper = shallow(<ButtonAuth disabled={true} />);\n+    expect(wrapper.find('button')).to.have.length(1);\n+    expect(wrapper.find('.fa-spin')).to.have.length(1);\n+  });\n+});\n+\n+describe('<Input />', () =>  {\n+  it('Test Render Input Component', () => {\n+    const wrapper = shallow(<Input label={true}\n+      name=\"\" value=\"\" placeholder=\"test\"\n+      onChange={()=>{}} type=\"text\" error=\"test\"/>);","path":"src/tests/Common.test.js","position":42,"original_position":42,"commit_id":"279cfaf7a6edff7448449684a26243e9187c3d74","original_commit_id":"279cfaf7a6edff7448449684a26243e9187c3d74","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Missing space before =>                                                     arrow-spacing<br>Missing space after =>                                                      arrow-spacing","created_at":"2018-04-28T22:14:12Z","updated_at":"2018-04-28T22:14:13Z","html_url":"https://github.com/victorjambo/WeConnect-React/pull/5#discussion_r184866380","pull_request_url":"https://api.github.com/repos/victorjambo/WeConnect-React/pulls/5","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/victorjambo/WeConnect-React/pulls/comments/184866380"},"html":{"href":"https://github.com/victorjambo/WeConnect-React/pull/5#discussion_r184866380"},"pull_request":{"href":"https://api.github.com/repos/victorjambo/WeConnect-React/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/victorjambo/WeConnect-React/pulls/5","id":184769456,"html_url":"https://github.com/victorjambo/WeConnect-React/pull/5","diff_url":"https://github.com/victorjambo/WeConnect-React/pull/5.diff","patch_url":"https://github.com/victorjambo/WeConnect-React/pull/5.patch","issue_url":"https://api.github.com/repos/victorjambo/WeConnect-React/issues/5","number":5,"state":"open","locked":false,"title":"Ft businesses","user":{"login":"victorjambo","id":24602451,"avatar_url":"https://avatars3.githubusercontent.com/u/24602451?v=4","gravatar_id":"","url":"https://api.github.com/users/victorjambo","html_url":"https://github.com/victorjambo","followers_url":"https://api.github.com/users/victorjambo/followers","following_url":"https://api.github.com/users/victorjambo/following{/other_user}","gists_url":"https://api.github.com/users/victorjambo/gists{/gist_id}","starred_url":"https://api.github.com/users/victorjambo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorjambo/subscriptions","organizations_url":"https://api.github.com/users/victorjambo/orgs","repos_url":"https://api.github.com/users/victorjambo/repos","events_url":"https://api.github.com/users/victorjambo/events{/privacy}","received_events_url":"https://api.github.com/users/victorjambo/received_events","type":"User","site_admin":false},"body":"**What does this PR do?**\r\nImplements Business Funtions and routes after authentication\r\n\r\n**Description of Task to be completed?**\r\n\r\nThe following are functions the user can perform\r\n\r\nUser can register/signup and Login\r\nUser can view all businesses\r\nUser can create, update and delete a business\r\nUser can logout\r\n\r\nHow should this be tested?\r\nClone this repo\r\n\r\n```bash\r\ncd WeConnect-React\r\n```\r\n\r\nInstall the dependencies if you haven't.\r\n```bash\r\n$ npm install\r\n```\r\n\r\nTests routes with your browser\r\n\r\n**Routes** | **Functionality**\r\n--- | ---\r\n`/auth/register` | Creates a user account \r\n`/auth/login` | Logs in a user\r\n`/` | Landing Page & Gets all businesses\r\n`/business/:id` | Gets single business\r\n`/business/:id/edit` | Update single business\r\n\r\nRun app with;\r\n\r\n```bash\r\n$ npm start\r\n```\r\n\r\nTo run your test cases use\r\n\r\n```bash\r\n$ npm test\r\n```\r\n\r\n**Any background context you want to provide?**\r\nBuilt with ReactJS 16 and ES6\r\n","created_at":"2018-04-28T07:16:58Z","updated_at":"2018-04-28T22:14:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3c6508c2d5468ff482991431ec25567b8bb6fa4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/victorjambo/WeConnect-React/pulls/5/commits","review_comments_url":"https://api.github.com/repos/victorjambo/WeConnect-React/pulls/5/comments","review_comment_url":"https://api.github.com/repos/victorjambo/WeConnect-React/pulls/comments{/number}","comments_url":"https://api.github.com/repos/victorjambo/WeConnect-React/issues/5/comments","statuses_url":"https://api.github.com/repos/victorjambo/WeConnect-React/statuses/279cfaf7a6edff7448449684a26243e9187c3d74","head":{"label":"victorjambo:ft-businesses","ref":"ft-businesses","sha":"279cfaf7a6edff7448449684a26243e9187c3d74","user":{"login":"victorjambo","id":24602451,"avatar_url":"https://avatars3.githubusercontent.com/u/24602451?v=4","gravatar_id":"","url":"https://api.github.com/users/victorjambo","html_url":"https://github.com/victorjambo","followers_url":"https://api.github.com/users/victorjambo/followers","following_url":"https://api.github.com/users/victorjambo/following{/other_user}","gists_url":"https://api.github.com/users/victorjambo/gists{/gist_id}","starred_url":"https://api.github.com/users/victorjambo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorjambo/subscriptions","organizations_url":"https://api.github.com/users/victorjambo/orgs","repos_url":"https://api.github.com/users/victorjambo/repos","events_url":"https://api.github.com/users/victorjambo/events{/privacy}","received_events_url":"https://api.github.com/users/victorjambo/received_events","type":"User","site_admin":false},"repo":{"id":127031102,"name":"WeConnect-React","full_name":"victorjambo/WeConnect-React","owner":{"login":"victorjambo","id":24602451,"avatar_url":"https://avatars3.githubusercontent.com/u/24602451?v=4","gravatar_id":"","url":"https://api.github.com/users/victorjambo","html_url":"https://github.com/victorjambo","followers_url":"https://api.github.com/users/victorjambo/followers","following_url":"https://api.github.com/users/victorjambo/following{/other_user}","gists_url":"https://api.github.com/users/victorjambo/gists{/gist_id}","starred_url":"https://api.github.com/users/victorjambo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorjambo/subscriptions","organizations_url":"https://api.github.com/users/victorjambo/orgs","repos_url":"https://api.github.com/users/victorjambo/repos","events_url":"https://api.github.com/users/victorjambo/events{/privacy}","received_events_url":"https://api.github.com/users/victorjambo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/victorjambo/WeConnect-React","description":"WeConnect provides a platform that brings businesses and individuals together. This platform creates awareness for businesses and gives the users the ability to write reviews about the businesses they have interacted with.","fork":false,"url":"https://api.github.com/repos/victorjambo/WeConnect-React","forks_url":"https://api.github.com/repos/victorjambo/WeConnect-React/forks","keys_url":"https://api.github.com/repos/victorjambo/WeConnect-React/keys{/key_id}","collaborators_url":"https://api.github.com/repos/victorjambo/WeConnect-React/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/victorjambo/WeConnect-React/teams","hooks_url":"https://api.github.com/repos/victorjambo/WeConnect-React/hooks","issue_events_url":"https://api.github.com/repos/victorjambo/WeConnect-React/issues/events{/number}","events_url":"https://api.github.com/repos/victorjambo/WeConnect-React/events","assignees_url":"https://api.github.com/repos/victorjambo/WeConnect-React/assignees{/user}","branches_url":"https://api.github.com/repos/victorjambo/WeConnect-React/branches{/branch}","tags_url":"https://api.github.com/repos/victorjambo/WeConnect-React/tags","blobs_url":"https://api.github.com/repos/victorjambo/WeConnect-React/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/victorjambo/WeConnect-React/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/victorjambo/WeConnect-React/git/refs{/sha}","trees_url":"https://api.github.com/repos/victorjambo/WeConnect-React/git/trees{/sha}","statuses_url":"https://api.github.com/repos/victorjambo/WeConnect-React/statuses/{sha}","languages_url":"https://api.github.com/repos/victorjambo/WeConnect-React/languages","stargazers_url":"https://api.github.com/repos/victorjambo/WeConnect-React/stargazers","contributors_url":"https://api.github.com/repos/victorjambo/WeConnect-React/contributors","subscribers_url":"https://api.github.com/repos/victorjambo/WeConnect-React/subscribers","subscription_url":"https://api.github.com/repos/victorjambo/WeConnect-React/subscription","commits_url":"https://api.github.com/repos/victorjambo/WeConnect-React/commits{/sha}","git_commits_url":"https://api.github.com/repos/victorjambo/WeConnect-React/git/commits{/sha}","comments_url":"https://api.github.com/repos/victorjambo/WeConnect-React/comments{/number}","issue_comment_url":"https://api.github.com/repos/victorjambo/WeConnect-React/issues/comments{/number}","contents_url":"https://api.github.com/repos/victorjambo/WeConnect-React/contents/{+path}","compare_url":"https://api.github.com/repos/victorjambo/WeConnect-React/compare/{base}...{head}","merges_url":"https://api.github.com/repos/victorjambo/WeConnect-React/merges","archive_url":"https://api.github.com/repos/victorjambo/WeConnect-React/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/victorjambo/WeConnect-React/downloads","issues_url":"https://api.github.com/repos/victorjambo/WeConnect-React/issues{/number}","pulls_url":"https://api.github.com/repos/victorjambo/WeConnect-React/pulls{/number}","milestones_url":"https://api.github.com/repos/victorjambo/WeConnect-React/milestones{/number}","notifications_url":"https://api.github.com/repos/victorjambo/WeConnect-React/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/victorjambo/WeConnect-React/labels{/name}","releases_url":"https://api.github.com/repos/victorjambo/WeConnect-React/releases{/id}","deployments_url":"https://api.github.com/repos/victorjambo/WeConnect-React/deployments","created_at":"2018-03-27T18:42:59Z","updated_at":"2018-04-11T05:50:29Z","pushed_at":"2018-04-28T22:13:39Z","git_url":"git://github.com/victorjambo/WeConnect-React.git","ssh_url":"git@github.com:victorjambo/WeConnect-React.git","clone_url":"https://github.com/victorjambo/WeConnect-React.git","svn_url":"https://github.com/victorjambo/WeConnect-React","homepage":null,"size":1208,"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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"victorjambo:development","ref":"development","sha":"f4cf67fd4abcf80a18628b326661f7afb8bc0053","user":{"login":"victorjambo","id":24602451,"avatar_url":"https://avatars3.githubusercontent.com/u/24602451?v=4","gravatar_id":"","url":"https://api.github.com/users/victorjambo","html_url":"https://github.com/victorjambo","followers_url":"https://api.github.com/users/victorjambo/followers","following_url":"https://api.github.com/users/victorjambo/following{/other_user}","gists_url":"https://api.github.com/users/victorjambo/gists{/gist_id}","starred_url":"https://api.github.com/users/victorjambo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorjambo/subscriptions","organizations_url":"https://api.github.com/users/victorjambo/orgs","repos_url":"https://api.github.com/users/victorjambo/repos","events_url":"https://api.github.com/users/victorjambo/events{/privacy}","received_events_url":"https://api.github.com/users/victorjambo/received_events","type":"User","site_admin":false},"repo":{"id":127031102,"name":"WeConnect-React","full_name":"victorjambo/WeConnect-React","owner":{"login":"victorjambo","id":24602451,"avatar_url":"https://avatars3.githubusercontent.com/u/24602451?v=4","gravatar_id":"","url":"https://api.github.com/users/victorjambo","html_url":"https://github.com/victorjambo","followers_url":"https://api.github.com/users/victorjambo/followers","following_url":"https://api.github.com/users/victorjambo/following{/other_user}","gists_url":"https://api.github.com/users/victorjambo/gists{/gist_id}","starred_url":"https://api.github.com/users/victorjambo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorjambo/subscriptions","organizations_url":"https://api.github.com/users/victorjambo/orgs","repos_url":"https://api.github.com/users/victorjambo/repos","events_url":"https://api.github.com/users/victorjambo/events{/privacy}","received_events_url":"https://api.github.com/users/victorjambo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/victorjambo/WeConnect-React","description":"WeConnect provides a platform that brings businesses and individuals together. This platform creates awareness for businesses and gives the users the ability to write reviews about the businesses they have interacted with.","fork":false,"url":"https://api.github.com/repos/victorjambo/WeConnect-React","forks_url":"https://api.github.com/repos/victorjambo/WeConnect-React/forks","keys_url":"https://api.github.com/repos/victorjambo/WeConnect-React/keys{/key_id}","collaborators_url":"https://api.github.com/repos/victorjambo/WeConnect-React/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/victorjambo/WeConnect-React/teams","hooks_url":"https://api.github.com/repos/victorjambo/WeConnect-React/hooks","issue_events_url":"https://api.github.com/repos/victorjambo/WeConnect-React/issues/events{/number}","events_url":"https://api.github.com/repos/victorjambo/WeConnect-React/events","assignees_url":"https://api.github.com/repos/victorjambo/WeConnect-React/assignees{/user}","branches_url":"https://api.github.com/repos/victorjambo/WeConnect-React/branches{/branch}","tags_url":"https://api.github.com/repos/victorjambo/WeConnect-React/tags","blobs_url":"https://api.github.com/repos/victorjambo/WeConnect-React/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/victorjambo/WeConnect-React/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/victorjambo/WeConnect-React/git/refs{/sha}","trees_url":"https://api.github.com/repos/victorjambo/WeConnect-React/git/trees{/sha}","statuses_url":"https://api.github.com/repos/victorjambo/WeConnect-React/statuses/{sha}","languages_url":"https://api.github.com/repos/victorjambo/WeConnect-React/languages","stargazers_url":"https://api.github.com/repos/victorjambo/WeConnect-React/stargazers","contributors_url":"https://api.github.com/repos/victorjambo/WeConnect-React/contributors","subscribers_url":"https://api.github.com/repos/victorjambo/WeConnect-React/subscribers","subscription_url":"https://api.github.com/repos/victorjambo/WeConnect-React/subscription","commits_url":"https://api.github.com/repos/victorjambo/WeConnect-React/commits{/sha}","git_commits_url":"https://api.github.com/repos/victorjambo/WeConnect-React/git/commits{/sha}","comments_url":"https://api.github.com/repos/victorjambo/WeConnect-React/comments{/number}","issue_comment_url":"https://api.github.com/repos/victorjambo/WeConnect-React/issues/comments{/number}","contents_url":"https://api.github.com/repos/victorjambo/WeConnect-React/contents/{+path}","compare_url":"https://api.github.com/repos/victorjambo/WeConnect-React/compare/{base}...{head}","merges_url":"https://api.github.com/repos/victorjambo/WeConnect-React/merges","archive_url":"https://api.github.com/repos/victorjambo/WeConnect-React/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/victorjambo/WeConnect-React/downloads","issues_url":"https://api.github.com/repos/victorjambo/WeConnect-React/issues{/number}","pulls_url":"https://api.github.com/repos/victorjambo/WeConnect-React/pulls{/number}","milestones_url":"https://api.github.com/repos/victorjambo/WeConnect-React/milestones{/number}","notifications_url":"https://api.github.com/repos/victorjambo/WeConnect-React/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/victorjambo/WeConnect-React/labels{/name}","releases_url":"https://api.github.com/repos/victorjambo/WeConnect-React/releases{/id}","deployments_url":"https://api.github.com/repos/victorjambo/WeConnect-React/deployments","created_at":"2018-03-27T18:42:59Z","updated_at":"2018-04-11T05:50:29Z","pushed_at":"2018-04-28T22:13:39Z","git_url":"git://github.com/victorjambo/WeConnect-React.git","ssh_url":"git@github.com:victorjambo/WeConnect-React.git","clone_url":"https://github.com/victorjambo/WeConnect-React.git","svn_url":"https://github.com/victorjambo/WeConnect-React","homepage":null,"size":1208,"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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/victorjambo/WeConnect-React/pulls/5"},"html":{"href":"https://github.com/victorjambo/WeConnect-React/pull/5"},"issue":{"href":"https://api.github.com/repos/victorjambo/WeConnect-React/issues/5"},"comments":{"href":"https://api.github.com/repos/victorjambo/WeConnect-React/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/victorjambo/WeConnect-React/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/victorjambo/WeConnect-React/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/victorjambo/WeConnect-React/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/victorjambo/WeConnect-React/statuses/279cfaf7a6edff7448449684a26243e9187c3d74"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}