{"action":"created","comment":{"url":"https://api.github.com/repos/Anuoluwa/FirstForFood/pulls/comments/220078618","pull_request_review_id":158399418,"id":220078618,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMDA3ODYxOA==","diff_hunk":"@@ -0,0 +1,74 @@\n+import chai from 'chai';\n+import request from 'supertest';\n+import app from '../../../../server';\n+\n+const { expect } = chai;\n+\n+describe('Test suite for menu controller', () => {","path":"api/v2/tests/controllers/menuController.spec.js","position":7,"original_position":7,"commit_id":"2d56c7eae3517282020674bacb7205b46649a6a0","original_commit_id":"2d56c7eae3517282020674bacb7205b46649a6a0","user":{"login":"proxiex","id":22414567,"node_id":"MDQ6VXNlcjIyNDE0NTY3","avatar_url":"https://avatars3.githubusercontent.com/u/22414567?v=4","gravatar_id":"","url":"https://api.github.com/users/proxiex","html_url":"https://github.com/proxiex","followers_url":"https://api.github.com/users/proxiex/followers","following_url":"https://api.github.com/users/proxiex/following{/other_user}","gists_url":"https://api.github.com/users/proxiex/gists{/gist_id}","starred_url":"https://api.github.com/users/proxiex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proxiex/subscriptions","organizations_url":"https://api.github.com/users/proxiex/orgs","repos_url":"https://api.github.com/users/proxiex/repos","events_url":"https://api.github.com/users/proxiex/events{/privacy}","received_events_url":"https://api.github.com/users/proxiex/received_events","type":"User","site_admin":false},"body":"You should test for more than just status code, verify what is being returned.","created_at":"2018-09-25T07:07:15Z","updated_at":"2018-09-25T07:07:22Z","html_url":"https://github.com/Anuoluwa/FirstForFood/pull/17#discussion_r220078618","pull_request_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/pulls/17","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Anuoluwa/FirstForFood/pulls/comments/220078618"},"html":{"href":"https://github.com/Anuoluwa/FirstForFood/pull/17#discussion_r220078618"},"pull_request":{"href":"https://api.github.com/repos/Anuoluwa/FirstForFood/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/Anuoluwa/FirstForFood/pulls/17","id":217843376,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3ODQzMzc2","html_url":"https://github.com/Anuoluwa/FirstForFood/pull/17","diff_url":"https://github.com/Anuoluwa/FirstForFood/pull/17.diff","patch_url":"https://github.com/Anuoluwa/FirstForFood/pull/17.patch","issue_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/issues/17","number":17,"state":"open","locked":false,"title":"#160642156 Build Out Enpoint to Create Menu Resources","user":{"login":"Anuoluwa","id":26985000,"node_id":"MDQ6VXNlcjI2OTg1MDAw","avatar_url":"https://avatars2.githubusercontent.com/u/26985000?v=4","gravatar_id":"","url":"https://api.github.com/users/Anuoluwa","html_url":"https://github.com/Anuoluwa","followers_url":"https://api.github.com/users/Anuoluwa/followers","following_url":"https://api.github.com/users/Anuoluwa/following{/other_user}","gists_url":"https://api.github.com/users/Anuoluwa/gists{/gist_id}","starred_url":"https://api.github.com/users/Anuoluwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anuoluwa/subscriptions","organizations_url":"https://api.github.com/users/Anuoluwa/orgs","repos_url":"https://api.github.com/users/Anuoluwa/repos","events_url":"https://api.github.com/users/Anuoluwa/events{/privacy}","received_events_url":"https://api.github.com/users/Anuoluwa/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nHave POST/ method to create new menu on the menu resource endpoint\r\n\r\n#### Description of Task to be completed?\r\nHave the following endpoint working\r\n* POST  /api/v2/menu\r\n\r\n#### How should this be manually tested?\r\nClone the repoisitory and change directory in to it, run npm install\r\n* Using Postman test every endpoints above with this header\r\nkey: Content-Type: value : application/x-www-form-urlencoded\r\n* Signup as an admin using this email : adminuser@gmail.com, and password of your choice, the admin fields (username, email, password, phone, address) are all required to signup.\r\n* Use the token generated on header/authorization, prefix with token, \r\nlike so: 'token xxxxxxxxxxxxxxxxxxxxxxxxx' \r\n* To test POST  /api/v2/menu/, this creates a new menu, with these required fields: foodName, foodDescr, and price.\r\n       \r\n#### Any background context you want to provide?\r\nMenu must be added first to allow users to make orders, on the required endpoints.\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n[#160642156](https://www.pivotaltracker.com/story/show/160642156)","created_at":"2018-09-25T03:08:53Z","updated_at":"2018-09-25T07:07:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef596c3fd59be929bb44d9f664dee6f21cd924e4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/pulls/17/commits","review_comments_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/pulls/17/comments","review_comment_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/issues/17/comments","statuses_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/statuses/2d56c7eae3517282020674bacb7205b46649a6a0","head":{"label":"Anuoluwa:ft-create-menu-endpoint-160642156","ref":"ft-create-menu-endpoint-160642156","sha":"2d56c7eae3517282020674bacb7205b46649a6a0","user":{"login":"Anuoluwa","id":26985000,"node_id":"MDQ6VXNlcjI2OTg1MDAw","avatar_url":"https://avatars2.githubusercontent.com/u/26985000?v=4","gravatar_id":"","url":"https://api.github.com/users/Anuoluwa","html_url":"https://github.com/Anuoluwa","followers_url":"https://api.github.com/users/Anuoluwa/followers","following_url":"https://api.github.com/users/Anuoluwa/following{/other_user}","gists_url":"https://api.github.com/users/Anuoluwa/gists{/gist_id}","starred_url":"https://api.github.com/users/Anuoluwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anuoluwa/subscriptions","organizations_url":"https://api.github.com/users/Anuoluwa/orgs","repos_url":"https://api.github.com/users/Anuoluwa/repos","events_url":"https://api.github.com/users/Anuoluwa/events{/privacy}","received_events_url":"https://api.github.com/users/Anuoluwa/received_events","type":"User","site_admin":false},"repo":{"id":148180124,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgxODAxMjQ=","name":"FirstForFood","full_name":"Anuoluwa/FirstForFood","private":false,"owner":{"login":"Anuoluwa","id":26985000,"node_id":"MDQ6VXNlcjI2OTg1MDAw","avatar_url":"https://avatars2.githubusercontent.com/u/26985000?v=4","gravatar_id":"","url":"https://api.github.com/users/Anuoluwa","html_url":"https://github.com/Anuoluwa","followers_url":"https://api.github.com/users/Anuoluwa/followers","following_url":"https://api.github.com/users/Anuoluwa/following{/other_user}","gists_url":"https://api.github.com/users/Anuoluwa/gists{/gist_id}","starred_url":"https://api.github.com/users/Anuoluwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anuoluwa/subscriptions","organizations_url":"https://api.github.com/users/Anuoluwa/orgs","repos_url":"https://api.github.com/users/Anuoluwa/repos","events_url":"https://api.github.com/users/Anuoluwa/events{/privacy}","received_events_url":"https://api.github.com/users/Anuoluwa/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Anuoluwa/FirstForFood","description":"A food delivery service app for a restaurant","fork":false,"url":"https://api.github.com/repos/Anuoluwa/FirstForFood","forks_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/forks","keys_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/teams","hooks_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/hooks","issue_events_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/issues/events{/number}","events_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/events","assignees_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/assignees{/user}","branches_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/branches{/branch}","tags_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/tags","blobs_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/git/refs{/sha}","trees_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/statuses/{sha}","languages_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/languages","stargazers_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/stargazers","contributors_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/contributors","subscribers_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/subscribers","subscription_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/subscription","commits_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/commits{/sha}","git_commits_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/git/commits{/sha}","comments_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/comments{/number}","issue_comment_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/issues/comments{/number}","contents_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/contents/{+path}","compare_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/merges","archive_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/downloads","issues_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/issues{/number}","pulls_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/pulls{/number}","milestones_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/milestones{/number}","notifications_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/labels{/name}","releases_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/releases{/id}","deployments_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/deployments","created_at":"2018-09-10T15:48:55Z","updated_at":"2018-09-24T13:43:15Z","pushed_at":"2018-09-25T03:08:53Z","git_url":"git://github.com/Anuoluwa/FirstForFood.git","ssh_url":"git@github.com:Anuoluwa/FirstForFood.git","clone_url":"https://github.com/Anuoluwa/FirstForFood.git","svn_url":"https://github.com/Anuoluwa/FirstForFood","homepage":"","size":5759,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"Anuoluwa:develop","ref":"develop","sha":"13e73f2cfaed316076e20ab317c926e3d3284523","user":{"login":"Anuoluwa","id":26985000,"node_id":"MDQ6VXNlcjI2OTg1MDAw","avatar_url":"https://avatars2.githubusercontent.com/u/26985000?v=4","gravatar_id":"","url":"https://api.github.com/users/Anuoluwa","html_url":"https://github.com/Anuoluwa","followers_url":"https://api.github.com/users/Anuoluwa/followers","following_url":"https://api.github.com/users/Anuoluwa/following{/other_user}","gists_url":"https://api.github.com/users/Anuoluwa/gists{/gist_id}","starred_url":"https://api.github.com/users/Anuoluwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anuoluwa/subscriptions","organizations_url":"https://api.github.com/users/Anuoluwa/orgs","repos_url":"https://api.github.com/users/Anuoluwa/repos","events_url":"https://api.github.com/users/Anuoluwa/events{/privacy}","received_events_url":"https://api.github.com/users/Anuoluwa/received_events","type":"User","site_admin":false},"repo":{"id":148180124,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgxODAxMjQ=","name":"FirstForFood","full_name":"Anuoluwa/FirstForFood","private":false,"owner":{"login":"Anuoluwa","id":26985000,"node_id":"MDQ6VXNlcjI2OTg1MDAw","avatar_url":"https://avatars2.githubusercontent.com/u/26985000?v=4","gravatar_id":"","url":"https://api.github.com/users/Anuoluwa","html_url":"https://github.com/Anuoluwa","followers_url":"https://api.github.com/users/Anuoluwa/followers","following_url":"https://api.github.com/users/Anuoluwa/following{/other_user}","gists_url":"https://api.github.com/users/Anuoluwa/gists{/gist_id}","starred_url":"https://api.github.com/users/Anuoluwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anuoluwa/subscriptions","organizations_url":"https://api.github.com/users/Anuoluwa/orgs","repos_url":"https://api.github.com/users/Anuoluwa/repos","events_url":"https://api.github.com/users/Anuoluwa/events{/privacy}","received_events_url":"https://api.github.com/users/Anuoluwa/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Anuoluwa/FirstForFood","description":"A food delivery service app for a restaurant","fork":false,"url":"https://api.github.com/repos/Anuoluwa/FirstForFood","forks_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/forks","keys_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/teams","hooks_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/hooks","issue_events_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/issues/events{/number}","events_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/events","assignees_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/assignees{/user}","branches_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/branches{/branch}","tags_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/tags","blobs_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/git/refs{/sha}","trees_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/statuses/{sha}","languages_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/languages","stargazers_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/stargazers","contributors_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/contributors","subscribers_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/subscribers","subscription_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/subscription","commits_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/commits{/sha}","git_commits_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/git/commits{/sha}","comments_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/comments{/number}","issue_comment_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/issues/comments{/number}","contents_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/contents/{+path}","compare_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/merges","archive_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/downloads","issues_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/issues{/number}","pulls_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/pulls{/number}","milestones_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/milestones{/number}","notifications_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/labels{/name}","releases_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/releases{/id}","deployments_url":"https://api.github.com/repos/Anuoluwa/FirstForFood/deployments","created_at":"2018-09-10T15:48:55Z","updated_at":"2018-09-24T13:43:15Z","pushed_at":"2018-09-25T03:08:53Z","git_url":"git://github.com/Anuoluwa/FirstForFood.git","ssh_url":"git@github.com:Anuoluwa/FirstForFood.git","clone_url":"https://github.com/Anuoluwa/FirstForFood.git","svn_url":"https://github.com/Anuoluwa/FirstForFood","homepage":"","size":5759,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Anuoluwa/FirstForFood/pulls/17"},"html":{"href":"https://github.com/Anuoluwa/FirstForFood/pull/17"},"issue":{"href":"https://api.github.com/repos/Anuoluwa/FirstForFood/issues/17"},"comments":{"href":"https://api.github.com/repos/Anuoluwa/FirstForFood/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/Anuoluwa/FirstForFood/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/Anuoluwa/FirstForFood/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Anuoluwa/FirstForFood/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/Anuoluwa/FirstForFood/statuses/2d56c7eae3517282020674bacb7205b46649a6a0"}},"author_association":"OWNER"}}
{"actor":{"display_login":"proxiex"}}