{"action":"created","comment":{"url":"https://api.github.com/repos/enJames/BEConnect/pulls/comments/181565884","pull_request_review_id":112221492,"id":181565884,"diff_hunk":"@@ -6,29 +6,57 @@ chai.use(chaiHttp);\n const { assert, should } = chai;\n should();\n \n-describe('Server test', () => {\n-    describe('When a user visits \"/\"', () => {\n-        it('It should return a 200 status', (done) => {\n+describe('POST BUSINESSES TESTS', () => {\n+    describe('When a user sends a POST request to \"/businesses\"', () => {\n+        it('It should return a 201 status', (done) => {\n             chai.request(app)\n-                .get('/')\n+                .post('/businesses')\n+                .send({\n+                    businessName: 'Hamilton Berkleys',\n+                    category: 'Food',\n+                    state: 'Kano'\n+                })\n                 .end((req, res) => {\n-                    res.should.have.status(200);\n+                    res.should.have.status(201);\n                     done();\n                 });\n         });\n         it('It should return an object', (done) => {\n             chai.request(app)\n-                .get('/')\n+                .post('/businesses')\n+                .send({\n+                    businessName: 'Hamilton Berkleys',\n+                    category: 'Food',\n+                    state: 'Kano'\n+                })\n                 .end((req, res) => {\n                     res.body.should.be.an('object');\n                     done();\n                 });\n         });\n-        it('It should a message \"Welcome to the start!\"', (done) => {\n+        it('Response message should equal \"Registration successful!\"', (done) => {\n             chai.request(app)\n-                .get('/')\n+                .post('/businesses')\n+                .send({\n+                    businessName: 'Hamilton Berkleys',\n+                    category: 'Food',\n+                    state: 'Kano'\n+                })\n                 .end((req, res) => {\n-                    assert.equal(res.body.message, 'Welcome to the start!', 'compare');\n+                    assert.equal(res.body.message, 'Registration successful!', 'compare');\n+                    done();","path":"server/test/test.app.js","position":51,"original_position":51,"commit_id":"8920c30d2cbc5c53869c75a0918435bbe12b2e7d","original_commit_id":"8920c30d2cbc5c53869c75a0918435bbe12b2e7d","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":"Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style","created_at":"2018-04-14T23:10:20Z","updated_at":"2018-04-14T23:10:21Z","html_url":"https://github.com/enJames/BEConnect/pull/25#discussion_r181565884","pull_request_url":"https://api.github.com/repos/enJames/BEConnect/pulls/25","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/enJames/BEConnect/pulls/comments/181565884"},"html":{"href":"https://github.com/enJames/BEConnect/pull/25#discussion_r181565884"},"pull_request":{"href":"https://api.github.com/repos/enJames/BEConnect/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/enJames/BEConnect/pulls/25","id":181671567,"html_url":"https://github.com/enJames/BEConnect/pull/25","diff_url":"https://github.com/enJames/BEConnect/pull/25.diff","patch_url":"https://github.com/enJames/BEConnect/pull/25.patch","issue_url":"https://api.github.com/repos/enJames/BEConnect/issues/25","number":25,"state":"open","locked":false,"title":"Feature/register business/#156768325","user":{"login":"enJames","id":29673586,"avatar_url":"https://avatars1.githubusercontent.com/u/29673586?v=4","gravatar_id":"","url":"https://api.github.com/users/enJames","html_url":"https://github.com/enJames","followers_url":"https://api.github.com/users/enJames/followers","following_url":"https://api.github.com/users/enJames/following{/other_user}","gists_url":"https://api.github.com/users/enJames/gists{/gist_id}","starred_url":"https://api.github.com/users/enJames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enJames/subscriptions","organizations_url":"https://api.github.com/users/enJames/orgs","repos_url":"https://api.github.com/users/enJames/repos","events_url":"https://api.github.com/users/enJames/events{/privacy}","received_events_url":"https://api.github.com/users/enJames/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-14T23:10:04Z","updated_at":"2018-04-14T23:10:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86da71af1067f1898fb5b6bbc77e7b80ade09cef","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/enJames/BEConnect/pulls/25/commits","review_comments_url":"https://api.github.com/repos/enJames/BEConnect/pulls/25/comments","review_comment_url":"https://api.github.com/repos/enJames/BEConnect/pulls/comments{/number}","comments_url":"https://api.github.com/repos/enJames/BEConnect/issues/25/comments","statuses_url":"https://api.github.com/repos/enJames/BEConnect/statuses/8920c30d2cbc5c53869c75a0918435bbe12b2e7d","head":{"label":"enJames:feature/register-business/#156768325","ref":"feature/register-business/#156768325","sha":"8920c30d2cbc5c53869c75a0918435bbe12b2e7d","user":{"login":"enJames","id":29673586,"avatar_url":"https://avatars1.githubusercontent.com/u/29673586?v=4","gravatar_id":"","url":"https://api.github.com/users/enJames","html_url":"https://github.com/enJames","followers_url":"https://api.github.com/users/enJames/followers","following_url":"https://api.github.com/users/enJames/following{/other_user}","gists_url":"https://api.github.com/users/enJames/gists{/gist_id}","starred_url":"https://api.github.com/users/enJames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enJames/subscriptions","organizations_url":"https://api.github.com/users/enJames/orgs","repos_url":"https://api.github.com/users/enJames/repos","events_url":"https://api.github.com/users/enJames/events{/privacy}","received_events_url":"https://api.github.com/users/enJames/received_events","type":"User","site_admin":false},"repo":{"id":126645689,"name":"BEConnect","full_name":"enJames/BEConnect","owner":{"login":"enJames","id":29673586,"avatar_url":"https://avatars1.githubusercontent.com/u/29673586?v=4","gravatar_id":"","url":"https://api.github.com/users/enJames","html_url":"https://github.com/enJames","followers_url":"https://api.github.com/users/enJames/followers","following_url":"https://api.github.com/users/enJames/following{/other_user}","gists_url":"https://api.github.com/users/enJames/gists{/gist_id}","starred_url":"https://api.github.com/users/enJames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enJames/subscriptions","organizations_url":"https://api.github.com/users/enJames/orgs","repos_url":"https://api.github.com/users/enJames/repos","events_url":"https://api.github.com/users/enJames/events{/privacy}","received_events_url":"https://api.github.com/users/enJames/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/enJames/BEConnect","description":null,"fork":false,"url":"https://api.github.com/repos/enJames/BEConnect","forks_url":"https://api.github.com/repos/enJames/BEConnect/forks","keys_url":"https://api.github.com/repos/enJames/BEConnect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enJames/BEConnect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enJames/BEConnect/teams","hooks_url":"https://api.github.com/repos/enJames/BEConnect/hooks","issue_events_url":"https://api.github.com/repos/enJames/BEConnect/issues/events{/number}","events_url":"https://api.github.com/repos/enJames/BEConnect/events","assignees_url":"https://api.github.com/repos/enJames/BEConnect/assignees{/user}","branches_url":"https://api.github.com/repos/enJames/BEConnect/branches{/branch}","tags_url":"https://api.github.com/repos/enJames/BEConnect/tags","blobs_url":"https://api.github.com/repos/enJames/BEConnect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enJames/BEConnect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enJames/BEConnect/git/refs{/sha}","trees_url":"https://api.github.com/repos/enJames/BEConnect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enJames/BEConnect/statuses/{sha}","languages_url":"https://api.github.com/repos/enJames/BEConnect/languages","stargazers_url":"https://api.github.com/repos/enJames/BEConnect/stargazers","contributors_url":"https://api.github.com/repos/enJames/BEConnect/contributors","subscribers_url":"https://api.github.com/repos/enJames/BEConnect/subscribers","subscription_url":"https://api.github.com/repos/enJames/BEConnect/subscription","commits_url":"https://api.github.com/repos/enJames/BEConnect/commits{/sha}","git_commits_url":"https://api.github.com/repos/enJames/BEConnect/git/commits{/sha}","comments_url":"https://api.github.com/repos/enJames/BEConnect/comments{/number}","issue_comment_url":"https://api.github.com/repos/enJames/BEConnect/issues/comments{/number}","contents_url":"https://api.github.com/repos/enJames/BEConnect/contents/{+path}","compare_url":"https://api.github.com/repos/enJames/BEConnect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enJames/BEConnect/merges","archive_url":"https://api.github.com/repos/enJames/BEConnect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enJames/BEConnect/downloads","issues_url":"https://api.github.com/repos/enJames/BEConnect/issues{/number}","pulls_url":"https://api.github.com/repos/enJames/BEConnect/pulls{/number}","milestones_url":"https://api.github.com/repos/enJames/BEConnect/milestones{/number}","notifications_url":"https://api.github.com/repos/enJames/BEConnect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enJames/BEConnect/labels{/name}","releases_url":"https://api.github.com/repos/enJames/BEConnect/releases{/id}","deployments_url":"https://api.github.com/repos/enJames/BEConnect/deployments","created_at":"2018-03-24T22:33:47Z","updated_at":"2018-04-13T20:36:50Z","pushed_at":"2018-04-14T23:10:05Z","git_url":"git://github.com/enJames/BEConnect.git","ssh_url":"git@github.com:enJames/BEConnect.git","clone_url":"https://github.com/enJames/BEConnect.git","svn_url":"https://github.com/enJames/BEConnect","homepage":null,"size":10012,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"develop"}},"base":{"label":"enJames:develop","ref":"develop","sha":"c4cccac89da4b87610f790ef96bd9d9898299940","user":{"login":"enJames","id":29673586,"avatar_url":"https://avatars1.githubusercontent.com/u/29673586?v=4","gravatar_id":"","url":"https://api.github.com/users/enJames","html_url":"https://github.com/enJames","followers_url":"https://api.github.com/users/enJames/followers","following_url":"https://api.github.com/users/enJames/following{/other_user}","gists_url":"https://api.github.com/users/enJames/gists{/gist_id}","starred_url":"https://api.github.com/users/enJames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enJames/subscriptions","organizations_url":"https://api.github.com/users/enJames/orgs","repos_url":"https://api.github.com/users/enJames/repos","events_url":"https://api.github.com/users/enJames/events{/privacy}","received_events_url":"https://api.github.com/users/enJames/received_events","type":"User","site_admin":false},"repo":{"id":126645689,"name":"BEConnect","full_name":"enJames/BEConnect","owner":{"login":"enJames","id":29673586,"avatar_url":"https://avatars1.githubusercontent.com/u/29673586?v=4","gravatar_id":"","url":"https://api.github.com/users/enJames","html_url":"https://github.com/enJames","followers_url":"https://api.github.com/users/enJames/followers","following_url":"https://api.github.com/users/enJames/following{/other_user}","gists_url":"https://api.github.com/users/enJames/gists{/gist_id}","starred_url":"https://api.github.com/users/enJames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enJames/subscriptions","organizations_url":"https://api.github.com/users/enJames/orgs","repos_url":"https://api.github.com/users/enJames/repos","events_url":"https://api.github.com/users/enJames/events{/privacy}","received_events_url":"https://api.github.com/users/enJames/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/enJames/BEConnect","description":null,"fork":false,"url":"https://api.github.com/repos/enJames/BEConnect","forks_url":"https://api.github.com/repos/enJames/BEConnect/forks","keys_url":"https://api.github.com/repos/enJames/BEConnect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enJames/BEConnect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enJames/BEConnect/teams","hooks_url":"https://api.github.com/repos/enJames/BEConnect/hooks","issue_events_url":"https://api.github.com/repos/enJames/BEConnect/issues/events{/number}","events_url":"https://api.github.com/repos/enJames/BEConnect/events","assignees_url":"https://api.github.com/repos/enJames/BEConnect/assignees{/user}","branches_url":"https://api.github.com/repos/enJames/BEConnect/branches{/branch}","tags_url":"https://api.github.com/repos/enJames/BEConnect/tags","blobs_url":"https://api.github.com/repos/enJames/BEConnect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enJames/BEConnect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enJames/BEConnect/git/refs{/sha}","trees_url":"https://api.github.com/repos/enJames/BEConnect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enJames/BEConnect/statuses/{sha}","languages_url":"https://api.github.com/repos/enJames/BEConnect/languages","stargazers_url":"https://api.github.com/repos/enJames/BEConnect/stargazers","contributors_url":"https://api.github.com/repos/enJames/BEConnect/contributors","subscribers_url":"https://api.github.com/repos/enJames/BEConnect/subscribers","subscription_url":"https://api.github.com/repos/enJames/BEConnect/subscription","commits_url":"https://api.github.com/repos/enJames/BEConnect/commits{/sha}","git_commits_url":"https://api.github.com/repos/enJames/BEConnect/git/commits{/sha}","comments_url":"https://api.github.com/repos/enJames/BEConnect/comments{/number}","issue_comment_url":"https://api.github.com/repos/enJames/BEConnect/issues/comments{/number}","contents_url":"https://api.github.com/repos/enJames/BEConnect/contents/{+path}","compare_url":"https://api.github.com/repos/enJames/BEConnect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enJames/BEConnect/merges","archive_url":"https://api.github.com/repos/enJames/BEConnect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enJames/BEConnect/downloads","issues_url":"https://api.github.com/repos/enJames/BEConnect/issues{/number}","pulls_url":"https://api.github.com/repos/enJames/BEConnect/pulls{/number}","milestones_url":"https://api.github.com/repos/enJames/BEConnect/milestones{/number}","notifications_url":"https://api.github.com/repos/enJames/BEConnect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enJames/BEConnect/labels{/name}","releases_url":"https://api.github.com/repos/enJames/BEConnect/releases{/id}","deployments_url":"https://api.github.com/repos/enJames/BEConnect/deployments","created_at":"2018-03-24T22:33:47Z","updated_at":"2018-04-13T20:36:50Z","pushed_at":"2018-04-14T23:10:05Z","git_url":"git://github.com/enJames/BEConnect.git","ssh_url":"git@github.com:enJames/BEConnect.git","clone_url":"https://github.com/enJames/BEConnect.git","svn_url":"https://github.com/enJames/BEConnect","homepage":null,"size":10012,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/enJames/BEConnect/pulls/25"},"html":{"href":"https://github.com/enJames/BEConnect/pull/25"},"issue":{"href":"https://api.github.com/repos/enJames/BEConnect/issues/25"},"comments":{"href":"https://api.github.com/repos/enJames/BEConnect/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/enJames/BEConnect/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/enJames/BEConnect/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/enJames/BEConnect/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/enJames/BEConnect/statuses/8920c30d2cbc5c53869c75a0918435bbe12b2e7d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}