{"action":"created","comment":{"url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/pulls/comments/130981305","pull_request_review_id":53915847,"id":130981305,"diff_hunk":"@@ -132,6 +229,81 @@ describe('Documents Endpoints', () => {\n           done();\n         });\n     });\n+    it('should successfully get all documents for a user', (done) => {\n+      localStorage.set('token', userToken);\n+      Document.create(\n+        { title: 'SUPER',\n+          content: 'super',\n+          access: 'Public',\n+          userId: 1\n+        }\n+      );\n+      request(app)\n+        .get('/api/v1/documents/')\n+        .end((err, res) => {\n+          if (!err) {\n+            expect(res.status).to.equal(200);\n+          }\n+          done();\n+        });\n+    });\n+    it('should not allow limit and offset as alphabets', (done) => {\n+      localStorage.set('token', superToken);\n+      Document.create(\n+        { title: 'SUPER',\n+          content: 'super',\n+          access: 'Public',\n+          userId: 1\n+        }\n+      );\n+      request(app)\n+        .get('/api/v1/documents?limit=a&offset=b')\n+        .end((err, res) => {\n+          if (!err) {\n+            expect(res.status).to.equal(400);\n+            expect(res.body.message).to.equal('Invalid Limit and Offset');\n+          }\n+          done();\n+        });\n+    });\n+    it('should not allow limit as an alphabet', (done) => {\n+      localStorage.set('token', superToken);\n+      Document.create(\n+        { title: 'SUPER',\n+          content: 'super',\n+          access: 'Public',\n+          userId: 1\n+        }\n+      );\n+      request(app)\n+        .get('/api/v1/documents?limit=a&offset=0')\n+        .end((err, res) => {\n+          if (!err) {\n+            expect(res.status).to.equal(400);\n+            expect(res.body.message).to.equal('Invalid Limit');\n+          }\n+          done();\n+        });\n+    });\n+    it('should not allow offset as an alphabet', (done) => {","path":"tests/controllers/documents.specs.js","position":182,"original_position":182,"commit_id":"f7c069b9f57e94cc5b689b953162e78837e095ab","original_commit_id":"f7c069b9f57e94cc5b689b953162e78837e095ab","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":"2017-08-02T20:04:13Z","updated_at":"2017-08-02T20:04:13Z","html_url":"https://github.com/Tawakalt/d0-cp2-document-management-system/pull/23#discussion_r130981305","pull_request_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/pulls/comments/130981305"},"html":{"href":"https://github.com/Tawakalt/d0-cp2-document-management-system/pull/23#discussion_r130981305"},"pull_request":{"href":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/pulls/23","id":133578128,"html_url":"https://github.com/Tawakalt/d0-cp2-document-management-system/pull/23","diff_url":"https://github.com/Tawakalt/d0-cp2-document-management-system/pull/23.diff","patch_url":"https://github.com/Tawakalt/d0-cp2-document-management-system/pull/23.patch","issue_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/issues/23","number":23,"state":"open","locked":false,"title":"#149862942 Implement Feedback","user":{"login":"Tawakalt","id":23738768,"avatar_url":"https://avatars1.githubusercontent.com/u/23738768?v=4","gravatar_id":"","url":"https://api.github.com/users/Tawakalt","html_url":"https://github.com/Tawakalt","followers_url":"https://api.github.com/users/Tawakalt/followers","following_url":"https://api.github.com/users/Tawakalt/following{/other_user}","gists_url":"https://api.github.com/users/Tawakalt/gists{/gist_id}","starred_url":"https://api.github.com/users/Tawakalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tawakalt/subscriptions","organizations_url":"https://api.github.com/users/Tawakalt/orgs","repos_url":"https://api.github.com/users/Tawakalt/repos","events_url":"https://api.github.com/users/Tawakalt/events{/privacy}","received_events_url":"https://api.github.com/users/Tawakalt/received_events","type":"User","site_admin":false},"body":"    \r\n    #### What does this PR do?\r\n    - Implements Feedback\r\n\r\n    #### Description of Task to be completed?\r\n    - Edit readme\r\n\r\n    #### How should this be manually tested?\r\n    - None\r\n\r\n    #### Any background context you want to provide?\r\n    - None\r\n\r\n    #### What are the relevant pivotal tracker stories?\r\n    - None\r\n\r\n    #### Screenshots (if appropriate)\r\n    - None\r\n\r\n    #### Questions:\r\n    - None","created_at":"2017-08-01T21:38:41Z","updated_at":"2017-08-02T20:04:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"755d40ce9098103ceb6e5b1d3d4777c7e0516766","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/pulls/23/commits","review_comments_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/pulls/23/comments","review_comment_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/issues/23/comments","statuses_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/statuses/f7c069b9f57e94cc5b689b953162e78837e095ab","head":{"label":"Tawakalt:chore/149862942/implement-feedback","ref":"chore/149862942/implement-feedback","sha":"f7c069b9f57e94cc5b689b953162e78837e095ab","user":{"login":"Tawakalt","id":23738768,"avatar_url":"https://avatars1.githubusercontent.com/u/23738768?v=4","gravatar_id":"","url":"https://api.github.com/users/Tawakalt","html_url":"https://github.com/Tawakalt","followers_url":"https://api.github.com/users/Tawakalt/followers","following_url":"https://api.github.com/users/Tawakalt/following{/other_user}","gists_url":"https://api.github.com/users/Tawakalt/gists{/gist_id}","starred_url":"https://api.github.com/users/Tawakalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tawakalt/subscriptions","organizations_url":"https://api.github.com/users/Tawakalt/orgs","repos_url":"https://api.github.com/users/Tawakalt/repos","events_url":"https://api.github.com/users/Tawakalt/events{/privacy}","received_events_url":"https://api.github.com/users/Tawakalt/received_events","type":"User","site_admin":false},"repo":{"id":97131709,"name":"d0-cp2-document-management-system","full_name":"Tawakalt/d0-cp2-document-management-system","owner":{"login":"Tawakalt","id":23738768,"avatar_url":"https://avatars1.githubusercontent.com/u/23738768?v=4","gravatar_id":"","url":"https://api.github.com/users/Tawakalt","html_url":"https://github.com/Tawakalt","followers_url":"https://api.github.com/users/Tawakalt/followers","following_url":"https://api.github.com/users/Tawakalt/following{/other_user}","gists_url":"https://api.github.com/users/Tawakalt/gists{/gist_id}","starred_url":"https://api.github.com/users/Tawakalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tawakalt/subscriptions","organizations_url":"https://api.github.com/users/Tawakalt/orgs","repos_url":"https://api.github.com/users/Tawakalt/repos","events_url":"https://api.github.com/users/Tawakalt/events{/privacy}","received_events_url":"https://api.github.com/users/Tawakalt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tawakalt/d0-cp2-document-management-system","description":"A Document management System","fork":false,"url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system","forks_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/forks","keys_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/teams","hooks_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/hooks","issue_events_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/issues/events{/number}","events_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/events","assignees_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/assignees{/user}","branches_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/branches{/branch}","tags_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/tags","blobs_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/statuses/{sha}","languages_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/languages","stargazers_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/stargazers","contributors_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/contributors","subscribers_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/subscribers","subscription_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/subscription","commits_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/contents/{+path}","compare_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/merges","archive_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/downloads","issues_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/issues{/number}","pulls_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/pulls{/number}","milestones_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/milestones{/number}","notifications_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/labels{/name}","releases_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/releases{/id}","deployments_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/deployments","created_at":"2017-07-13T14:27:56Z","updated_at":"2017-08-02T17:27:53Z","pushed_at":"2017-08-02T20:04:01Z","git_url":"git://github.com/Tawakalt/d0-cp2-document-management-system.git","ssh_url":"git@github.com:Tawakalt/d0-cp2-document-management-system.git","clone_url":"https://github.com/Tawakalt/d0-cp2-document-management-system.git","svn_url":"https://github.com/Tawakalt/d0-cp2-document-management-system","homepage":"https://d0-cp2-document-management-sys.herokuapp.com","size":187,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Tawakalt:master","ref":"master","sha":"687ba4cc3391e319a07b20b8cbd5f951e03a3d37","user":{"login":"Tawakalt","id":23738768,"avatar_url":"https://avatars1.githubusercontent.com/u/23738768?v=4","gravatar_id":"","url":"https://api.github.com/users/Tawakalt","html_url":"https://github.com/Tawakalt","followers_url":"https://api.github.com/users/Tawakalt/followers","following_url":"https://api.github.com/users/Tawakalt/following{/other_user}","gists_url":"https://api.github.com/users/Tawakalt/gists{/gist_id}","starred_url":"https://api.github.com/users/Tawakalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tawakalt/subscriptions","organizations_url":"https://api.github.com/users/Tawakalt/orgs","repos_url":"https://api.github.com/users/Tawakalt/repos","events_url":"https://api.github.com/users/Tawakalt/events{/privacy}","received_events_url":"https://api.github.com/users/Tawakalt/received_events","type":"User","site_admin":false},"repo":{"id":97131709,"name":"d0-cp2-document-management-system","full_name":"Tawakalt/d0-cp2-document-management-system","owner":{"login":"Tawakalt","id":23738768,"avatar_url":"https://avatars1.githubusercontent.com/u/23738768?v=4","gravatar_id":"","url":"https://api.github.com/users/Tawakalt","html_url":"https://github.com/Tawakalt","followers_url":"https://api.github.com/users/Tawakalt/followers","following_url":"https://api.github.com/users/Tawakalt/following{/other_user}","gists_url":"https://api.github.com/users/Tawakalt/gists{/gist_id}","starred_url":"https://api.github.com/users/Tawakalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tawakalt/subscriptions","organizations_url":"https://api.github.com/users/Tawakalt/orgs","repos_url":"https://api.github.com/users/Tawakalt/repos","events_url":"https://api.github.com/users/Tawakalt/events{/privacy}","received_events_url":"https://api.github.com/users/Tawakalt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tawakalt/d0-cp2-document-management-system","description":"A Document management System","fork":false,"url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system","forks_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/forks","keys_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/teams","hooks_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/hooks","issue_events_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/issues/events{/number}","events_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/events","assignees_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/assignees{/user}","branches_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/branches{/branch}","tags_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/tags","blobs_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/statuses/{sha}","languages_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/languages","stargazers_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/stargazers","contributors_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/contributors","subscribers_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/subscribers","subscription_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/subscription","commits_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/contents/{+path}","compare_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/merges","archive_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/downloads","issues_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/issues{/number}","pulls_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/pulls{/number}","milestones_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/milestones{/number}","notifications_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/labels{/name}","releases_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/releases{/id}","deployments_url":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/deployments","created_at":"2017-07-13T14:27:56Z","updated_at":"2017-08-02T17:27:53Z","pushed_at":"2017-08-02T20:04:01Z","git_url":"git://github.com/Tawakalt/d0-cp2-document-management-system.git","ssh_url":"git@github.com:Tawakalt/d0-cp2-document-management-system.git","clone_url":"https://github.com/Tawakalt/d0-cp2-document-management-system.git","svn_url":"https://github.com/Tawakalt/d0-cp2-document-management-system","homepage":"https://d0-cp2-document-management-sys.herokuapp.com","size":187,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/pulls/23"},"html":{"href":"https://github.com/Tawakalt/d0-cp2-document-management-system/pull/23"},"issue":{"href":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/issues/23"},"comments":{"href":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/Tawakalt/d0-cp2-document-management-system/statuses/f7c069b9f57e94cc5b689b953162e78837e095ab"}}}}
{"actor":{"display_login":"houndci-bot"}}