{"action":"created","comment":{"url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/pulls/comments/210495963","pull_request_review_id":146721695,"id":210495963,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDQ5NTk2Mw==","diff_hunk":"@@ -90,3 +90,19 @@ describe('Delete question function', () => {\n     expect(repo.deleteQuestion(4, 4)).to.be.a('string');\n   });\n });\n+\n+describe('Get questions by user function', () => {\n+  it('should be a function', () => {\n+    expect(repo.getQuestionByUser).to.be.a('function');\n+  });\n+  it('should return an array', () => {","path":"server/test/repo-test/question.test.js","position":9,"original_position":9,"commit_id":"047697345423326e7a7baf7122f23b3faa746f50","original_commit_id":"047697345423326e7a7baf7122f23b3faa746f50","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","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-08-16T07:12:13Z","updated_at":"2018-08-16T07:12:15Z","html_url":"https://github.com/PriscillaSam/Stackoverflow-Lite/pull/7#discussion_r210495963","pull_request_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/pulls/7","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/pulls/comments/210495963"},"html":{"href":"https://github.com/PriscillaSam/Stackoverflow-Lite/pull/7#discussion_r210495963"},"pull_request":{"href":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/pulls/7","id":208764911,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NzY0OTEx","html_url":"https://github.com/PriscillaSam/Stackoverflow-Lite/pull/7","diff_url":"https://github.com/PriscillaSam/Stackoverflow-Lite/pull/7.diff","patch_url":"https://github.com/PriscillaSam/Stackoverflow-Lite/pull/7.patch","issue_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/issues/7","number":7,"state":"open","locked":false,"title":"Api endpoint to mark an answer as accepted complete","user":{"login":"PriscillaSam","id":29674347,"node_id":"MDQ6VXNlcjI5Njc0MzQ3","avatar_url":"https://avatars1.githubusercontent.com/u/29674347?v=4","gravatar_id":"","url":"https://api.github.com/users/PriscillaSam","html_url":"https://github.com/PriscillaSam","followers_url":"https://api.github.com/users/PriscillaSam/followers","following_url":"https://api.github.com/users/PriscillaSam/following{/other_user}","gists_url":"https://api.github.com/users/PriscillaSam/gists{/gist_id}","starred_url":"https://api.github.com/users/PriscillaSam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PriscillaSam/subscriptions","organizations_url":"https://api.github.com/users/PriscillaSam/orgs","repos_url":"https://api.github.com/users/PriscillaSam/repos","events_url":"https://api.github.com/users/PriscillaSam/events{/privacy}","received_events_url":"https://api.github.com/users/PriscillaSam/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n* This PR implements the api to mark an answer to a question as the accepted answer.\r\n\r\n#### Description of Task to be completed.\r\nNo pending task.\r\n\r\n#### How should this be manually tested?\r\n* Open a terminal and run the git clone command `git clone https://github.com/PriscillaSam/Stackoverflow-Lite.git`.\r\n* run `git checkout -b 159795680-ft-accept-answer`\r\n* run `npm install` and `npm start`.\r\n* Open up Postman and test **POST** `localhost:3000/api/v1/questions/:questionId/answers/:answerId`.\r\n\r\n**Request sample**\r\n```\r\nquestionId and answerId are integers\r\n\r\n{\r\n   userId: integer(required),\r\n}\r\n```","created_at":"2018-08-16T07:12:05Z","updated_at":"2018-08-16T07:12:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6deaa0523b8cebf7cefc3a1aa0c94ef3c39d0a7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/pulls/7/commits","review_comments_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/pulls/7/comments","review_comment_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/issues/7/comments","statuses_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/statuses/047697345423326e7a7baf7122f23b3faa746f50","head":{"label":"PriscillaSam:159795680-ft-accept-answer","ref":"159795680-ft-accept-answer","sha":"047697345423326e7a7baf7122f23b3faa746f50","user":{"login":"PriscillaSam","id":29674347,"node_id":"MDQ6VXNlcjI5Njc0MzQ3","avatar_url":"https://avatars1.githubusercontent.com/u/29674347?v=4","gravatar_id":"","url":"https://api.github.com/users/PriscillaSam","html_url":"https://github.com/PriscillaSam","followers_url":"https://api.github.com/users/PriscillaSam/followers","following_url":"https://api.github.com/users/PriscillaSam/following{/other_user}","gists_url":"https://api.github.com/users/PriscillaSam/gists{/gist_id}","starred_url":"https://api.github.com/users/PriscillaSam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PriscillaSam/subscriptions","organizations_url":"https://api.github.com/users/PriscillaSam/orgs","repos_url":"https://api.github.com/users/PriscillaSam/repos","events_url":"https://api.github.com/users/PriscillaSam/events{/privacy}","received_events_url":"https://api.github.com/users/PriscillaSam/received_events","type":"User","site_admin":false},"repo":{"id":143856339,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM4NTYzMzk=","name":"Stackoverflow-Lite","full_name":"PriscillaSam/Stackoverflow-Lite","owner":{"login":"PriscillaSam","id":29674347,"node_id":"MDQ6VXNlcjI5Njc0MzQ3","avatar_url":"https://avatars1.githubusercontent.com/u/29674347?v=4","gravatar_id":"","url":"https://api.github.com/users/PriscillaSam","html_url":"https://github.com/PriscillaSam","followers_url":"https://api.github.com/users/PriscillaSam/followers","following_url":"https://api.github.com/users/PriscillaSam/following{/other_user}","gists_url":"https://api.github.com/users/PriscillaSam/gists{/gist_id}","starred_url":"https://api.github.com/users/PriscillaSam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PriscillaSam/subscriptions","organizations_url":"https://api.github.com/users/PriscillaSam/orgs","repos_url":"https://api.github.com/users/PriscillaSam/repos","events_url":"https://api.github.com/users/PriscillaSam/events{/privacy}","received_events_url":"https://api.github.com/users/PriscillaSam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PriscillaSam/Stackoverflow-Lite","description":null,"fork":false,"url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite","forks_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/forks","keys_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/teams","hooks_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/hooks","issue_events_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/issues/events{/number}","events_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/events","assignees_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/assignees{/user}","branches_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/branches{/branch}","tags_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/tags","blobs_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/git/refs{/sha}","trees_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/statuses/{sha}","languages_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/languages","stargazers_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/stargazers","contributors_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/contributors","subscribers_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/subscribers","subscription_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/subscription","commits_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/commits{/sha}","git_commits_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/git/commits{/sha}","comments_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/comments{/number}","issue_comment_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/issues/comments{/number}","contents_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/contents/{+path}","compare_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/merges","archive_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/downloads","issues_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/issues{/number}","pulls_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/pulls{/number}","milestones_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/milestones{/number}","notifications_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/labels{/name}","releases_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/releases{/id}","deployments_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/deployments","created_at":"2018-08-07T10:16:04Z","updated_at":"2018-08-10T15:54:02Z","pushed_at":"2018-08-16T07:12:05Z","git_url":"git://github.com/PriscillaSam/Stackoverflow-Lite.git","ssh_url":"git@github.com:PriscillaSam/Stackoverflow-Lite.git","clone_url":"https://github.com/PriscillaSam/Stackoverflow-Lite.git","svn_url":"https://github.com/PriscillaSam/Stackoverflow-Lite","homepage":null,"size":843,"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":"PriscillaSam:challenge2","ref":"challenge2","sha":"1e2bbc2a1818306ee6a1a96840e18db5e2eb2304","user":{"login":"PriscillaSam","id":29674347,"node_id":"MDQ6VXNlcjI5Njc0MzQ3","avatar_url":"https://avatars1.githubusercontent.com/u/29674347?v=4","gravatar_id":"","url":"https://api.github.com/users/PriscillaSam","html_url":"https://github.com/PriscillaSam","followers_url":"https://api.github.com/users/PriscillaSam/followers","following_url":"https://api.github.com/users/PriscillaSam/following{/other_user}","gists_url":"https://api.github.com/users/PriscillaSam/gists{/gist_id}","starred_url":"https://api.github.com/users/PriscillaSam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PriscillaSam/subscriptions","organizations_url":"https://api.github.com/users/PriscillaSam/orgs","repos_url":"https://api.github.com/users/PriscillaSam/repos","events_url":"https://api.github.com/users/PriscillaSam/events{/privacy}","received_events_url":"https://api.github.com/users/PriscillaSam/received_events","type":"User","site_admin":false},"repo":{"id":143856339,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM4NTYzMzk=","name":"Stackoverflow-Lite","full_name":"PriscillaSam/Stackoverflow-Lite","owner":{"login":"PriscillaSam","id":29674347,"node_id":"MDQ6VXNlcjI5Njc0MzQ3","avatar_url":"https://avatars1.githubusercontent.com/u/29674347?v=4","gravatar_id":"","url":"https://api.github.com/users/PriscillaSam","html_url":"https://github.com/PriscillaSam","followers_url":"https://api.github.com/users/PriscillaSam/followers","following_url":"https://api.github.com/users/PriscillaSam/following{/other_user}","gists_url":"https://api.github.com/users/PriscillaSam/gists{/gist_id}","starred_url":"https://api.github.com/users/PriscillaSam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PriscillaSam/subscriptions","organizations_url":"https://api.github.com/users/PriscillaSam/orgs","repos_url":"https://api.github.com/users/PriscillaSam/repos","events_url":"https://api.github.com/users/PriscillaSam/events{/privacy}","received_events_url":"https://api.github.com/users/PriscillaSam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PriscillaSam/Stackoverflow-Lite","description":null,"fork":false,"url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite","forks_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/forks","keys_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/teams","hooks_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/hooks","issue_events_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/issues/events{/number}","events_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/events","assignees_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/assignees{/user}","branches_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/branches{/branch}","tags_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/tags","blobs_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/git/refs{/sha}","trees_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/statuses/{sha}","languages_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/languages","stargazers_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/stargazers","contributors_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/contributors","subscribers_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/subscribers","subscription_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/subscription","commits_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/commits{/sha}","git_commits_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/git/commits{/sha}","comments_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/comments{/number}","issue_comment_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/issues/comments{/number}","contents_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/contents/{+path}","compare_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/merges","archive_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/downloads","issues_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/issues{/number}","pulls_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/pulls{/number}","milestones_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/milestones{/number}","notifications_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/labels{/name}","releases_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/releases{/id}","deployments_url":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/deployments","created_at":"2018-08-07T10:16:04Z","updated_at":"2018-08-10T15:54:02Z","pushed_at":"2018-08-16T07:12:05Z","git_url":"git://github.com/PriscillaSam/Stackoverflow-Lite.git","ssh_url":"git@github.com:PriscillaSam/Stackoverflow-Lite.git","clone_url":"https://github.com/PriscillaSam/Stackoverflow-Lite.git","svn_url":"https://github.com/PriscillaSam/Stackoverflow-Lite","homepage":null,"size":843,"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/PriscillaSam/Stackoverflow-Lite/pulls/7"},"html":{"href":"https://github.com/PriscillaSam/Stackoverflow-Lite/pull/7"},"issue":{"href":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/issues/7"},"comments":{"href":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/PriscillaSam/Stackoverflow-Lite/statuses/047697345423326e7a7baf7122f23b3faa746f50"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}