{"action":"created","comment":{"url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/pulls/comments/185683692","pull_request_review_id":117121647,"id":185683692,"diff_hunk":"@@ -54,73 +89,164 @@ describe('Meal API', () => {\n         .get('/api/v1/meals')\n         .end((err, res) => {\n           expect(res).to.have.status(200);\n-          expect(res).to.be.json;\n           res.body.should.be.a('object');\n+          res.body.should.have.property('data');\n+          res.body.data.should.a('array');\n           done();\n         });\n     });\n   });\n   describe('/PUT/:id Meal', () => {\n-    it('it should return a response 200', (done) => {\n+    it('it should return a message saying \"Meal updated successfully\"', (done) => {\n       chai.request(server)\n-        .put('/api/v1/meals/5')\n+        .put('/api/v1/meals/2')\n         .send({\n           name: 'Potato fries with pepsi',\n           price: '1800',\n+          image: 'www.image.com/dnijd',\n         })\n         .end((err, res) => {\n-          console.log(res.status);\n           expect(res).to.have.status(200);\n-          expect(res).to.be.json;\n-          res.body.should.have.property('message').eql('Meal added successfully');\n+          res.body.should.be.a('object');\n+          res.body.should.have.property('message').eql('Meal updated successfully');\n+          res.body.data.should.a('object');\n           done();\n         });\n     });\n-    it('it should return a response \"No meal content\"', (done) => {\n+    it('it should return a response \"Provide a valid meal id\"', (done) => {\n+      chai.request(server)\n+        .put('/api/v1/meals/sfg')\n+        .send({})\n+        .end((err, res) => {\n+          expect(res).to.have.status(404);\n+          res.body.should.be.a('object');\n+          res.body.should.have.property('message').eql('Provide a valid meal id');\n+          done();\n+        });\n+    });\n+    it('it should return a response \"Meal not found\"', (done) => {\n       chai.request(server)\n         .put('/api/v1/meals/6')\n         .send({})\n         .end((err, res) => {\n           expect(res).to.have.status(404);\n-          expect(res).to.be.json;\n+          res.body.should.be.a('object');\n+          res.body.should.have.property('message').eql('Meal not found');\n+          done();\n+        });\n+    });\n+    it('it should return a message saying \"Please check your meal name\"', (done) => {\n+      chai.request(server)\n+        .put('/api/v1/meals/2')\n+        .send({\n+          name: '',\n+          price: '1800',\n+          image: 'www.image.com/dnijd',\n+        })\n+        .end((err, res) => {\n+          expect(res).to.have.status(400);\n+          res.body.should.be.a('object');\n+          res.body.should.have.property('message').eql('Please check your meal name');\n+          done();\n+        });\n+    });\n+    it('it should return a message saying \"Please provide a valid meal price\"', (done) => {\n+      chai.request(server)\n+        .put('/api/v1/meals/2')\n+        .send({\n+          name: 'Yam and egg',\n+          price: 'jhii',\n+          image: 'www.image.com/dnijd',\n+        })\n+        .end((err, res) => {","path":"server/test/test.js","position":180,"original_position":180,"commit_id":"4c49b5ed7b7109de76bc183cb2e3d0e1b20ced92","original_commit_id":"4c49b5ed7b7109de76bc183cb2e3d0e1b20ced92","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-05-03T01:50:09Z","updated_at":"2018-05-03T01:50:09Z","html_url":"https://github.com/Nkemjiks/book-a-meal-app/pull/35#discussion_r185683692","pull_request_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/pulls/35","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/pulls/comments/185683692"},"html":{"href":"https://github.com/Nkemjiks/book-a-meal-app/pull/35#discussion_r185683692"},"pull_request":{"href":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/pulls/35","id":185359420,"html_url":"https://github.com/Nkemjiks/book-a-meal-app/pull/35","diff_url":"https://github.com/Nkemjiks/book-a-meal-app/pull/35.diff","patch_url":"https://github.com/Nkemjiks/book-a-meal-app/pull/35.patch","issue_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/issues/35","number":35,"state":"open","locked":false,"title":"Working on LFA's first feedback","user":{"login":"Nkemjiks","id":32465536,"avatar_url":"https://avatars0.githubusercontent.com/u/32465536?v=4","gravatar_id":"","url":"https://api.github.com/users/Nkemjiks","html_url":"https://github.com/Nkemjiks","followers_url":"https://api.github.com/users/Nkemjiks/followers","following_url":"https://api.github.com/users/Nkemjiks/following{/other_user}","gists_url":"https://api.github.com/users/Nkemjiks/gists{/gist_id}","starred_url":"https://api.github.com/users/Nkemjiks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nkemjiks/subscriptions","organizations_url":"https://api.github.com/users/Nkemjiks/orgs","repos_url":"https://api.github.com/users/Nkemjiks/repos","events_url":"https://api.github.com/users/Nkemjiks/events{/privacy}","received_events_url":"https://api.github.com/users/Nkemjiks/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-02T07:47:11Z","updated_at":"2018-05-03T01:50:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e03c414b509fb03930ebf8216c0b7703d7be392","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/pulls/35/commits","review_comments_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/pulls/35/comments","review_comment_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/issues/35/comments","statuses_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/statuses/4c49b5ed7b7109de76bc183cb2e3d0e1b20ced92","head":{"label":"Nkemjiks:ch-first-feedback-157202657","ref":"ch-first-feedback-157202657","sha":"4c49b5ed7b7109de76bc183cb2e3d0e1b20ced92","user":{"login":"Nkemjiks","id":32465536,"avatar_url":"https://avatars0.githubusercontent.com/u/32465536?v=4","gravatar_id":"","url":"https://api.github.com/users/Nkemjiks","html_url":"https://github.com/Nkemjiks","followers_url":"https://api.github.com/users/Nkemjiks/followers","following_url":"https://api.github.com/users/Nkemjiks/following{/other_user}","gists_url":"https://api.github.com/users/Nkemjiks/gists{/gist_id}","starred_url":"https://api.github.com/users/Nkemjiks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nkemjiks/subscriptions","organizations_url":"https://api.github.com/users/Nkemjiks/orgs","repos_url":"https://api.github.com/users/Nkemjiks/repos","events_url":"https://api.github.com/users/Nkemjiks/events{/privacy}","received_events_url":"https://api.github.com/users/Nkemjiks/received_events","type":"User","site_admin":false},"repo":{"id":129936217,"name":"book-a-meal-app","full_name":"Nkemjiks/book-a-meal-app","owner":{"login":"Nkemjiks","id":32465536,"avatar_url":"https://avatars0.githubusercontent.com/u/32465536?v=4","gravatar_id":"","url":"https://api.github.com/users/Nkemjiks","html_url":"https://github.com/Nkemjiks","followers_url":"https://api.github.com/users/Nkemjiks/followers","following_url":"https://api.github.com/users/Nkemjiks/following{/other_user}","gists_url":"https://api.github.com/users/Nkemjiks/gists{/gist_id}","starred_url":"https://api.github.com/users/Nkemjiks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nkemjiks/subscriptions","organizations_url":"https://api.github.com/users/Nkemjiks/orgs","repos_url":"https://api.github.com/users/Nkemjiks/repos","events_url":"https://api.github.com/users/Nkemjiks/events{/privacy}","received_events_url":"https://api.github.com/users/Nkemjiks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nkemjiks/book-a-meal-app","description":"Book-A-Meal is an application that allows customers to make food orders and helps the food vendor know what the customers want to eat. ","fork":false,"url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app","forks_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/forks","keys_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/teams","hooks_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/hooks","issue_events_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/issues/events{/number}","events_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/events","assignees_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/assignees{/user}","branches_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/branches{/branch}","tags_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/tags","blobs_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/statuses/{sha}","languages_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/languages","stargazers_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/stargazers","contributors_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/contributors","subscribers_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/subscribers","subscription_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/subscription","commits_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/contents/{+path}","compare_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/merges","archive_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/downloads","issues_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/issues{/number}","pulls_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/pulls{/number}","milestones_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/milestones{/number}","notifications_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/labels{/name}","releases_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/releases{/id}","deployments_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/deployments","created_at":"2018-04-17T16:44:32Z","updated_at":"2018-05-02T08:04:34Z","pushed_at":"2018-05-03T01:49:58Z","git_url":"git://github.com/Nkemjiks/book-a-meal-app.git","ssh_url":"git@github.com:Nkemjiks/book-a-meal-app.git","clone_url":"https://github.com/Nkemjiks/book-a-meal-app.git","svn_url":"https://github.com/Nkemjiks/book-a-meal-app","homepage":null,"size":229,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"base":{"label":"Nkemjiks:development","ref":"development","sha":"dccc747a31ff9a9da8909400776983fbf7ea8751","user":{"login":"Nkemjiks","id":32465536,"avatar_url":"https://avatars0.githubusercontent.com/u/32465536?v=4","gravatar_id":"","url":"https://api.github.com/users/Nkemjiks","html_url":"https://github.com/Nkemjiks","followers_url":"https://api.github.com/users/Nkemjiks/followers","following_url":"https://api.github.com/users/Nkemjiks/following{/other_user}","gists_url":"https://api.github.com/users/Nkemjiks/gists{/gist_id}","starred_url":"https://api.github.com/users/Nkemjiks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nkemjiks/subscriptions","organizations_url":"https://api.github.com/users/Nkemjiks/orgs","repos_url":"https://api.github.com/users/Nkemjiks/repos","events_url":"https://api.github.com/users/Nkemjiks/events{/privacy}","received_events_url":"https://api.github.com/users/Nkemjiks/received_events","type":"User","site_admin":false},"repo":{"id":129936217,"name":"book-a-meal-app","full_name":"Nkemjiks/book-a-meal-app","owner":{"login":"Nkemjiks","id":32465536,"avatar_url":"https://avatars0.githubusercontent.com/u/32465536?v=4","gravatar_id":"","url":"https://api.github.com/users/Nkemjiks","html_url":"https://github.com/Nkemjiks","followers_url":"https://api.github.com/users/Nkemjiks/followers","following_url":"https://api.github.com/users/Nkemjiks/following{/other_user}","gists_url":"https://api.github.com/users/Nkemjiks/gists{/gist_id}","starred_url":"https://api.github.com/users/Nkemjiks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nkemjiks/subscriptions","organizations_url":"https://api.github.com/users/Nkemjiks/orgs","repos_url":"https://api.github.com/users/Nkemjiks/repos","events_url":"https://api.github.com/users/Nkemjiks/events{/privacy}","received_events_url":"https://api.github.com/users/Nkemjiks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nkemjiks/book-a-meal-app","description":"Book-A-Meal is an application that allows customers to make food orders and helps the food vendor know what the customers want to eat. ","fork":false,"url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app","forks_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/forks","keys_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/teams","hooks_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/hooks","issue_events_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/issues/events{/number}","events_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/events","assignees_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/assignees{/user}","branches_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/branches{/branch}","tags_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/tags","blobs_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/statuses/{sha}","languages_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/languages","stargazers_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/stargazers","contributors_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/contributors","subscribers_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/subscribers","subscription_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/subscription","commits_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/contents/{+path}","compare_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/merges","archive_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/downloads","issues_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/issues{/number}","pulls_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/pulls{/number}","milestones_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/milestones{/number}","notifications_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/labels{/name}","releases_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/releases{/id}","deployments_url":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/deployments","created_at":"2018-04-17T16:44:32Z","updated_at":"2018-05-02T08:04:34Z","pushed_at":"2018-05-03T01:49:58Z","git_url":"git://github.com/Nkemjiks/book-a-meal-app.git","ssh_url":"git@github.com:Nkemjiks/book-a-meal-app.git","clone_url":"https://github.com/Nkemjiks/book-a-meal-app.git","svn_url":"https://github.com/Nkemjiks/book-a-meal-app","homepage":null,"size":229,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/pulls/35"},"html":{"href":"https://github.com/Nkemjiks/book-a-meal-app/pull/35"},"issue":{"href":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/issues/35"},"comments":{"href":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/Nkemjiks/book-a-meal-app/statuses/4c49b5ed7b7109de76bc183cb2e3d0e1b20ced92"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}