{"action":"created","comment":{"url":"https://api.github.com/repos/Bamiji/we-connect/pulls/comments/175145878","pull_request_review_id":104634197,"id":175145878,"diff_hunk":"@@ -0,0 +1,290 @@\n+const { expect } = require('chai');\n+const request = require('request');\n+\n+describe('Business Registration Route', () => {\n+  const name = 'test business';\n+  const location = 'test site';\n+  const category = 'test category';\n+\n+  it(\n+    'returns business as registered',\n+    (done) => {\n+      request.post(\n+        {\n+          url: 'http://localhost:3000/businesses/',\n+          form: { name, location, category }\n+        },\n+        (err, httpResponse, body) => {\n+          expect(body).to.include(name);\n+          expect(body).to.include(location);\n+          expect(body).to.include(category);\n+          expect(body).to.include('created');\n+          done();\n+        }\n+      );\n+    }\n+  );\n+});\n+\n+describe('Business Info Update Route', () => {\n+  const name = 'test business';\n+  const location = 'test site';\n+  const category = 'test category';\n+\n+  it(\n+    'returns empty update unchanged',\n+    (done) => {\n+      request.put(\n+        {\n+          url: 'http://localhost:3000/businesses/1',\n+          form: { }\n+        },\n+        (err, httpResponse, body) => {\n+          expect(body).to.include('andela');\n+          expect(body).to.include('lagos');\n+          expect(body).to.include('computer science');\n+          expect(body).to.include('updated');\n+          done();\n+        }\n+      );\n+    }\n+  );\n+\n+  it(\n+    'returns partial update edited',\n+    (done) => {\n+      request.put(\n+        {\n+          url: 'http://localhost:3000/businesses/2',\n+          form: { name }\n+        },\n+        (err, httpResponse, body) => {\n+          expect(body).to.include(name);\n+          expect(body).to.include('abuja');\n+          expect(body).to.include('engineering');\n+          expect(body).to.include('updated');\n+          done();\n+        }\n+      );\n+    }\n+  );\n+\n+  it(\n+    'returns full update edited',\n+    (done) => {\n+      request.put(\n+        {\n+          url: 'http://localhost:3000/businesses/1',\n+          form: { name, location, category }\n+        },\n+        (err, httpResponse, body) => {\n+          expect(body).to.include(name);\n+          expect(body).to.include(location);\n+          expect(body).to.include(category);\n+          expect(body).to.include('updated');\n+          done();\n+        }\n+      );\n+    }\n+  );\n+});\n+\n+describe('Business Deletion Route', () => {\n+  it(\n+    'returns business as deleted',\n+    (done) => {\n+      request.del(\n+        {\n+          url: 'http://localhost:3000/businesses/1'\n+        },\n+        (err, httpResponse, body) => {\n+          expect(body).to.include('andela');\n+          expect(body).to.include('deleted');\n+          done();\n+        }\n+      );\n+    }\n+  );\n+\n+  it(\n+    'returns correct business as deleted',\n+    (done) => {\n+      request.del(\n+        {\n+          url: 'http://localhost:3000/businesses/2'\n+        },\n+        (err, httpResponse, body) => {\n+          expect(body).to.include('not andela');\n+          expect(body).to.include('deleted');\n+          done();\n+        }\n+      );\n+    }\n+  );\n+});\n+\n+describe('Business Selection Route', () => {\n+  it(\n+    'returns business',\n+    (done) => {\n+      request.get(\n+        {\n+          url: 'http://localhost:3000/businesses/1'\n+        },\n+        (err, httpResponse, body) => {\n+          expect(body).to.include('andela');\n+          expect(body).to.include('found');\n+          done();\n+        }\n+      );\n+    }\n+  );\n+\n+  it(\n+    'returns correct business',\n+    (done) => {","path":"server/test/businesses.js","position":145,"original_position":145,"commit_id":"3aa7f8962a09ba5d9e0ded37c4d3072fbe7c8d4e","original_commit_id":"3aa7f8962a09ba5d9e0ded37c4d3072fbe7c8d4e","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":"'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').","created_at":"2018-03-16T16:30:25Z","updated_at":"2018-03-16T16:30:26Z","html_url":"https://github.com/Bamiji/we-connect/pull/2#discussion_r175145878","pull_request_url":"https://api.github.com/repos/Bamiji/we-connect/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Bamiji/we-connect/pulls/comments/175145878"},"html":{"href":"https://github.com/Bamiji/we-connect/pull/2#discussion_r175145878"},"pull_request":{"href":"https://api.github.com/repos/Bamiji/we-connect/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Bamiji/we-connect/pulls/2","id":175584013,"html_url":"https://github.com/Bamiji/we-connect/pull/2","diff_url":"https://github.com/Bamiji/we-connect/pull/2.diff","patch_url":"https://github.com/Bamiji/we-connect/pull/2.patch","issue_url":"https://api.github.com/repos/Bamiji/we-connect/issues/2","number":2,"state":"open","locked":false,"title":"HoundCI Test Pull Request","user":{"login":"Bamiji","id":10544954,"avatar_url":"https://avatars1.githubusercontent.com/u/10544954?v=4","gravatar_id":"","url":"https://api.github.com/users/Bamiji","html_url":"https://github.com/Bamiji","followers_url":"https://api.github.com/users/Bamiji/followers","following_url":"https://api.github.com/users/Bamiji/following{/other_user}","gists_url":"https://api.github.com/users/Bamiji/gists{/gist_id}","starred_url":"https://api.github.com/users/Bamiji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bamiji/subscriptions","organizations_url":"https://api.github.com/users/Bamiji/orgs","repos_url":"https://api.github.com/users/Bamiji/repos","events_url":"https://api.github.com/users/Bamiji/events{/privacy}","received_events_url":"https://api.github.com/users/Bamiji/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-16T16:30:16Z","updated_at":"2018-03-16T16:30:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Bamiji/we-connect/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Bamiji/we-connect/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Bamiji/we-connect/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Bamiji/we-connect/issues/2/comments","statuses_url":"https://api.github.com/repos/Bamiji/we-connect/statuses/3aa7f8962a09ba5d9e0ded37c4d3072fbe7c8d4e","head":{"label":"Bamiji:develop","ref":"develop","sha":"3aa7f8962a09ba5d9e0ded37c4d3072fbe7c8d4e","user":{"login":"Bamiji","id":10544954,"avatar_url":"https://avatars1.githubusercontent.com/u/10544954?v=4","gravatar_id":"","url":"https://api.github.com/users/Bamiji","html_url":"https://github.com/Bamiji","followers_url":"https://api.github.com/users/Bamiji/followers","following_url":"https://api.github.com/users/Bamiji/following{/other_user}","gists_url":"https://api.github.com/users/Bamiji/gists{/gist_id}","starred_url":"https://api.github.com/users/Bamiji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bamiji/subscriptions","organizations_url":"https://api.github.com/users/Bamiji/orgs","repos_url":"https://api.github.com/users/Bamiji/repos","events_url":"https://api.github.com/users/Bamiji/events{/privacy}","received_events_url":"https://api.github.com/users/Bamiji/received_events","type":"User","site_admin":false},"repo":{"id":123441895,"name":"we-connect","full_name":"Bamiji/we-connect","owner":{"login":"Bamiji","id":10544954,"avatar_url":"https://avatars1.githubusercontent.com/u/10544954?v=4","gravatar_id":"","url":"https://api.github.com/users/Bamiji","html_url":"https://github.com/Bamiji","followers_url":"https://api.github.com/users/Bamiji/followers","following_url":"https://api.github.com/users/Bamiji/following{/other_user}","gists_url":"https://api.github.com/users/Bamiji/gists{/gist_id}","starred_url":"https://api.github.com/users/Bamiji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bamiji/subscriptions","organizations_url":"https://api.github.com/users/Bamiji/orgs","repos_url":"https://api.github.com/users/Bamiji/repos","events_url":"https://api.github.com/users/Bamiji/events{/privacy}","received_events_url":"https://api.github.com/users/Bamiji/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Bamiji/we-connect","description":"Repository for a project website We Connect to connect individuals to businesses.","fork":false,"url":"https://api.github.com/repos/Bamiji/we-connect","forks_url":"https://api.github.com/repos/Bamiji/we-connect/forks","keys_url":"https://api.github.com/repos/Bamiji/we-connect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bamiji/we-connect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bamiji/we-connect/teams","hooks_url":"https://api.github.com/repos/Bamiji/we-connect/hooks","issue_events_url":"https://api.github.com/repos/Bamiji/we-connect/issues/events{/number}","events_url":"https://api.github.com/repos/Bamiji/we-connect/events","assignees_url":"https://api.github.com/repos/Bamiji/we-connect/assignees{/user}","branches_url":"https://api.github.com/repos/Bamiji/we-connect/branches{/branch}","tags_url":"https://api.github.com/repos/Bamiji/we-connect/tags","blobs_url":"https://api.github.com/repos/Bamiji/we-connect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bamiji/we-connect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bamiji/we-connect/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bamiji/we-connect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bamiji/we-connect/statuses/{sha}","languages_url":"https://api.github.com/repos/Bamiji/we-connect/languages","stargazers_url":"https://api.github.com/repos/Bamiji/we-connect/stargazers","contributors_url":"https://api.github.com/repos/Bamiji/we-connect/contributors","subscribers_url":"https://api.github.com/repos/Bamiji/we-connect/subscribers","subscription_url":"https://api.github.com/repos/Bamiji/we-connect/subscription","commits_url":"https://api.github.com/repos/Bamiji/we-connect/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bamiji/we-connect/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bamiji/we-connect/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bamiji/we-connect/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bamiji/we-connect/contents/{+path}","compare_url":"https://api.github.com/repos/Bamiji/we-connect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bamiji/we-connect/merges","archive_url":"https://api.github.com/repos/Bamiji/we-connect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bamiji/we-connect/downloads","issues_url":"https://api.github.com/repos/Bamiji/we-connect/issues{/number}","pulls_url":"https://api.github.com/repos/Bamiji/we-connect/pulls{/number}","milestones_url":"https://api.github.com/repos/Bamiji/we-connect/milestones{/number}","notifications_url":"https://api.github.com/repos/Bamiji/we-connect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bamiji/we-connect/labels{/name}","releases_url":"https://api.github.com/repos/Bamiji/we-connect/releases{/id}","deployments_url":"https://api.github.com/repos/Bamiji/we-connect/deployments","created_at":"2018-03-01T13:57:20Z","updated_at":"2018-03-08T16:00:19Z","pushed_at":"2018-03-16T16:30:16Z","git_url":"git://github.com/Bamiji/we-connect.git","ssh_url":"git@github.com:Bamiji/we-connect.git","clone_url":"https://github.com/Bamiji/we-connect.git","svn_url":"https://github.com/Bamiji/we-connect","homepage":"","size":140,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"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":"Bamiji:master","ref":"master","sha":"3985b76a7b415677ee3b2d27708013d844bc08d2","user":{"login":"Bamiji","id":10544954,"avatar_url":"https://avatars1.githubusercontent.com/u/10544954?v=4","gravatar_id":"","url":"https://api.github.com/users/Bamiji","html_url":"https://github.com/Bamiji","followers_url":"https://api.github.com/users/Bamiji/followers","following_url":"https://api.github.com/users/Bamiji/following{/other_user}","gists_url":"https://api.github.com/users/Bamiji/gists{/gist_id}","starred_url":"https://api.github.com/users/Bamiji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bamiji/subscriptions","organizations_url":"https://api.github.com/users/Bamiji/orgs","repos_url":"https://api.github.com/users/Bamiji/repos","events_url":"https://api.github.com/users/Bamiji/events{/privacy}","received_events_url":"https://api.github.com/users/Bamiji/received_events","type":"User","site_admin":false},"repo":{"id":123441895,"name":"we-connect","full_name":"Bamiji/we-connect","owner":{"login":"Bamiji","id":10544954,"avatar_url":"https://avatars1.githubusercontent.com/u/10544954?v=4","gravatar_id":"","url":"https://api.github.com/users/Bamiji","html_url":"https://github.com/Bamiji","followers_url":"https://api.github.com/users/Bamiji/followers","following_url":"https://api.github.com/users/Bamiji/following{/other_user}","gists_url":"https://api.github.com/users/Bamiji/gists{/gist_id}","starred_url":"https://api.github.com/users/Bamiji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bamiji/subscriptions","organizations_url":"https://api.github.com/users/Bamiji/orgs","repos_url":"https://api.github.com/users/Bamiji/repos","events_url":"https://api.github.com/users/Bamiji/events{/privacy}","received_events_url":"https://api.github.com/users/Bamiji/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Bamiji/we-connect","description":"Repository for a project website We Connect to connect individuals to businesses.","fork":false,"url":"https://api.github.com/repos/Bamiji/we-connect","forks_url":"https://api.github.com/repos/Bamiji/we-connect/forks","keys_url":"https://api.github.com/repos/Bamiji/we-connect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bamiji/we-connect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bamiji/we-connect/teams","hooks_url":"https://api.github.com/repos/Bamiji/we-connect/hooks","issue_events_url":"https://api.github.com/repos/Bamiji/we-connect/issues/events{/number}","events_url":"https://api.github.com/repos/Bamiji/we-connect/events","assignees_url":"https://api.github.com/repos/Bamiji/we-connect/assignees{/user}","branches_url":"https://api.github.com/repos/Bamiji/we-connect/branches{/branch}","tags_url":"https://api.github.com/repos/Bamiji/we-connect/tags","blobs_url":"https://api.github.com/repos/Bamiji/we-connect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bamiji/we-connect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bamiji/we-connect/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bamiji/we-connect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bamiji/we-connect/statuses/{sha}","languages_url":"https://api.github.com/repos/Bamiji/we-connect/languages","stargazers_url":"https://api.github.com/repos/Bamiji/we-connect/stargazers","contributors_url":"https://api.github.com/repos/Bamiji/we-connect/contributors","subscribers_url":"https://api.github.com/repos/Bamiji/we-connect/subscribers","subscription_url":"https://api.github.com/repos/Bamiji/we-connect/subscription","commits_url":"https://api.github.com/repos/Bamiji/we-connect/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bamiji/we-connect/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bamiji/we-connect/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bamiji/we-connect/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bamiji/we-connect/contents/{+path}","compare_url":"https://api.github.com/repos/Bamiji/we-connect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bamiji/we-connect/merges","archive_url":"https://api.github.com/repos/Bamiji/we-connect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bamiji/we-connect/downloads","issues_url":"https://api.github.com/repos/Bamiji/we-connect/issues{/number}","pulls_url":"https://api.github.com/repos/Bamiji/we-connect/pulls{/number}","milestones_url":"https://api.github.com/repos/Bamiji/we-connect/milestones{/number}","notifications_url":"https://api.github.com/repos/Bamiji/we-connect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bamiji/we-connect/labels{/name}","releases_url":"https://api.github.com/repos/Bamiji/we-connect/releases{/id}","deployments_url":"https://api.github.com/repos/Bamiji/we-connect/deployments","created_at":"2018-03-01T13:57:20Z","updated_at":"2018-03-08T16:00:19Z","pushed_at":"2018-03-16T16:30:16Z","git_url":"git://github.com/Bamiji/we-connect.git","ssh_url":"git@github.com:Bamiji/we-connect.git","clone_url":"https://github.com/Bamiji/we-connect.git","svn_url":"https://github.com/Bamiji/we-connect","homepage":"","size":140,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"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/Bamiji/we-connect/pulls/2"},"html":{"href":"https://github.com/Bamiji/we-connect/pull/2"},"issue":{"href":"https://api.github.com/repos/Bamiji/we-connect/issues/2"},"comments":{"href":"https://api.github.com/repos/Bamiji/we-connect/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Bamiji/we-connect/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Bamiji/we-connect/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Bamiji/we-connect/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Bamiji/we-connect/statuses/3aa7f8962a09ba5d9e0ded37c4d3072fbe7c8d4e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}