{"action":"created","comment":{"url":"https://api.github.com/repos/proxiex/More-Recipes/pulls/comments/142280987","pull_request_review_id":66620329,"id":142280987,"diff_hunk":"@@ -0,0 +1,92 @@\n+import chai from 'chai';\n+import chaiHttp from 'chai-http';\n+import db from '../src/models';\n+import app from '../src/app';\n+import faker from 'faker';\n+import fakeData from './helper/fake';\n+\n+const should = chai.should();\n+const Users = db.users;\n+\n+chai.use(chaiHttp);\n+\n+describe('Users', () => {\n+  \n+  it('should let users sign up /signup POST', (done) => {\n+    chai.request(app)\n+      .post('/api/v1/users/signup')\n+      .send(fakeData.newUsers)\n+      .end((err, res) => {\n+        console.log(err);\n+        res.should.be.json;\n+        res.body.should.be.a('object');\n+        res.should.have.status(201);\n+        done();\n+      });\n+  });\n+\n+  it('should not let user sign up with the same email twice', (done) => {\n+    chai.request(app)\n+      .post('/api/v1/users/signup')\n+      .send(fakeData.newUsers)\n+      .end((err, res) => {\n+        console.log(err);\n+        res.should.have.status(400);\n+        res.should.be.json;\n+        res.body.should.be.a('object');\n+        // res.body.should.have.property('message').equal('User already Exist!');\n+        done();\n+      });\n+  });\n+    \n+  it('should not let user sign up with no email address', (done) => {\n+    chai.request(app)\n+      .post('/api/v1/users/signup')\n+      .send(fakeData.noEmailUsers)\n+      .end((err, res) => {\n+        console.log(err);\n+        res.should.have.status(400);\n+        res.should.be.json;\n+        res.body.should.be.a('object');\n+        res.body.should.have.property('message').equal('Please Enter Email');\n+        done();\n+      });\n+  });\n+     \n+  it('should let users sign in /signin POST', (done) => {\n+    const User = {","path":"server/tests/users.spec.js","position":57,"original_position":57,"commit_id":"8e21938bfc77b4e58f89bc665284430c20b4fa8b","original_commit_id":"8e21938bfc77b4e58f89bc665284430c20b4fa8b","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":"'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).","created_at":"2017-10-02T23:25:38Z","updated_at":"2017-10-02T23:25:38Z","html_url":"https://github.com/proxiex/More-Recipes/pull/19#discussion_r142280987","pull_request_url":"https://api.github.com/repos/proxiex/More-Recipes/pulls/19","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/proxiex/More-Recipes/pulls/comments/142280987"},"html":{"href":"https://github.com/proxiex/More-Recipes/pull/19#discussion_r142280987"},"pull_request":{"href":"https://api.github.com/repos/proxiex/More-Recipes/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/proxiex/More-Recipes/pulls/19","id":144306885,"html_url":"https://github.com/proxiex/More-Recipes/pull/19","diff_url":"https://github.com/proxiex/More-Recipes/pull/19.diff","patch_url":"https://github.com/proxiex/More-Recipes/pull/19.patch","issue_url":"https://api.github.com/repos/proxiex/More-Recipes/issues/19","number":19,"state":"open","locked":false,"title":"Test cases","user":{"login":"proxiex","id":22414567,"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":"","created_at":"2017-10-02T23:25:30Z","updated_at":"2017-10-02T23:25:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8d37f27f3a4ce811ab4098d9fc9c94ff7fd244b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/proxiex/More-Recipes/pulls/19/commits","review_comments_url":"https://api.github.com/repos/proxiex/More-Recipes/pulls/19/comments","review_comment_url":"https://api.github.com/repos/proxiex/More-Recipes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/proxiex/More-Recipes/issues/19/comments","statuses_url":"https://api.github.com/repos/proxiex/More-Recipes/statuses/8e21938bfc77b4e58f89bc665284430c20b4fa8b","head":{"label":"proxiex:test","ref":"test","sha":"8e21938bfc77b4e58f89bc665284430c20b4fa8b","user":{"login":"proxiex","id":22414567,"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},"repo":{"id":104380559,"name":"More-Recipes","full_name":"proxiex/More-Recipes","owner":{"login":"proxiex","id":22414567,"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},"private":false,"html_url":"https://github.com/proxiex/More-Recipes","description":" More-Recipes​ ​provides​ ​a​ ​platform​ ​for​ ​users​ ​to​ ​share​ ​the​ ​awesome​ ​and​ ​exciting​ ​​ ​recipe​ ​ideas​ ​they have​ ​invented​ ​or​ ​learnt.​ ​​When​user​ ​comes​ ​up​ ​with​ ​a​ ​recipe,​ ​​ ​he/she​ ​can​ ​post​ ​it​ ​on More-Recipes​ ​and​ ​​ ​get​ ​feedback​ ​in​ ​form​ ​of​ ​reviews​ ​and​ ​votes​ ​from​ ​other​ ​users​ ​who​ ​explore​ ​that recipe.​ ​Users​ ​can​ ​also​ ​keep​ ​a​ ​list​ ​of​ ​their​ ​favorite​ ​recipes​ ​on​ ​the​ ​application.","fork":false,"url":"https://api.github.com/repos/proxiex/More-Recipes","forks_url":"https://api.github.com/repos/proxiex/More-Recipes/forks","keys_url":"https://api.github.com/repos/proxiex/More-Recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/proxiex/More-Recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/proxiex/More-Recipes/teams","hooks_url":"https://api.github.com/repos/proxiex/More-Recipes/hooks","issue_events_url":"https://api.github.com/repos/proxiex/More-Recipes/issues/events{/number}","events_url":"https://api.github.com/repos/proxiex/More-Recipes/events","assignees_url":"https://api.github.com/repos/proxiex/More-Recipes/assignees{/user}","branches_url":"https://api.github.com/repos/proxiex/More-Recipes/branches{/branch}","tags_url":"https://api.github.com/repos/proxiex/More-Recipes/tags","blobs_url":"https://api.github.com/repos/proxiex/More-Recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/proxiex/More-Recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/proxiex/More-Recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/proxiex/More-Recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/proxiex/More-Recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/proxiex/More-Recipes/languages","stargazers_url":"https://api.github.com/repos/proxiex/More-Recipes/stargazers","contributors_url":"https://api.github.com/repos/proxiex/More-Recipes/contributors","subscribers_url":"https://api.github.com/repos/proxiex/More-Recipes/subscribers","subscription_url":"https://api.github.com/repos/proxiex/More-Recipes/subscription","commits_url":"https://api.github.com/repos/proxiex/More-Recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/proxiex/More-Recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/proxiex/More-Recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/proxiex/More-Recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/proxiex/More-Recipes/contents/{+path}","compare_url":"https://api.github.com/repos/proxiex/More-Recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/proxiex/More-Recipes/merges","archive_url":"https://api.github.com/repos/proxiex/More-Recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/proxiex/More-Recipes/downloads","issues_url":"https://api.github.com/repos/proxiex/More-Recipes/issues{/number}","pulls_url":"https://api.github.com/repos/proxiex/More-Recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/proxiex/More-Recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/proxiex/More-Recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/proxiex/More-Recipes/labels{/name}","releases_url":"https://api.github.com/repos/proxiex/More-Recipes/releases{/id}","deployments_url":"https://api.github.com/repos/proxiex/More-Recipes/deployments","created_at":"2017-09-21T17:53:06Z","updated_at":"2017-09-25T01:46:28Z","pushed_at":"2017-10-02T23:25:31Z","git_url":"git://github.com/proxiex/More-Recipes.git","ssh_url":"git@github.com:proxiex/More-Recipes.git","clone_url":"https://github.com/proxiex/More-Recipes.git","svn_url":"https://github.com/proxiex/More-Recipes","homepage":null,"size":2437,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"proxiex:develop","ref":"develop","sha":"6b0cfbc798c18d7469b4c1e3d5a22a71b79e1134","user":{"login":"proxiex","id":22414567,"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},"repo":{"id":104380559,"name":"More-Recipes","full_name":"proxiex/More-Recipes","owner":{"login":"proxiex","id":22414567,"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},"private":false,"html_url":"https://github.com/proxiex/More-Recipes","description":" More-Recipes​ ​provides​ ​a​ ​platform​ ​for​ ​users​ ​to​ ​share​ ​the​ ​awesome​ ​and​ ​exciting​ ​​ ​recipe​ ​ideas​ ​they have​ ​invented​ ​or​ ​learnt.​ ​​When​user​ ​comes​ ​up​ ​with​ ​a​ ​recipe,​ ​​ ​he/she​ ​can​ ​post​ ​it​ ​on More-Recipes​ ​and​ ​​ ​get​ ​feedback​ ​in​ ​form​ ​of​ ​reviews​ ​and​ ​votes​ ​from​ ​other​ ​users​ ​who​ ​explore​ ​that recipe.​ ​Users​ ​can​ ​also​ ​keep​ ​a​ ​list​ ​of​ ​their​ ​favorite​ ​recipes​ ​on​ ​the​ ​application.","fork":false,"url":"https://api.github.com/repos/proxiex/More-Recipes","forks_url":"https://api.github.com/repos/proxiex/More-Recipes/forks","keys_url":"https://api.github.com/repos/proxiex/More-Recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/proxiex/More-Recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/proxiex/More-Recipes/teams","hooks_url":"https://api.github.com/repos/proxiex/More-Recipes/hooks","issue_events_url":"https://api.github.com/repos/proxiex/More-Recipes/issues/events{/number}","events_url":"https://api.github.com/repos/proxiex/More-Recipes/events","assignees_url":"https://api.github.com/repos/proxiex/More-Recipes/assignees{/user}","branches_url":"https://api.github.com/repos/proxiex/More-Recipes/branches{/branch}","tags_url":"https://api.github.com/repos/proxiex/More-Recipes/tags","blobs_url":"https://api.github.com/repos/proxiex/More-Recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/proxiex/More-Recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/proxiex/More-Recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/proxiex/More-Recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/proxiex/More-Recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/proxiex/More-Recipes/languages","stargazers_url":"https://api.github.com/repos/proxiex/More-Recipes/stargazers","contributors_url":"https://api.github.com/repos/proxiex/More-Recipes/contributors","subscribers_url":"https://api.github.com/repos/proxiex/More-Recipes/subscribers","subscription_url":"https://api.github.com/repos/proxiex/More-Recipes/subscription","commits_url":"https://api.github.com/repos/proxiex/More-Recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/proxiex/More-Recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/proxiex/More-Recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/proxiex/More-Recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/proxiex/More-Recipes/contents/{+path}","compare_url":"https://api.github.com/repos/proxiex/More-Recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/proxiex/More-Recipes/merges","archive_url":"https://api.github.com/repos/proxiex/More-Recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/proxiex/More-Recipes/downloads","issues_url":"https://api.github.com/repos/proxiex/More-Recipes/issues{/number}","pulls_url":"https://api.github.com/repos/proxiex/More-Recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/proxiex/More-Recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/proxiex/More-Recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/proxiex/More-Recipes/labels{/name}","releases_url":"https://api.github.com/repos/proxiex/More-Recipes/releases{/id}","deployments_url":"https://api.github.com/repos/proxiex/More-Recipes/deployments","created_at":"2017-09-21T17:53:06Z","updated_at":"2017-09-25T01:46:28Z","pushed_at":"2017-10-02T23:25:31Z","git_url":"git://github.com/proxiex/More-Recipes.git","ssh_url":"git@github.com:proxiex/More-Recipes.git","clone_url":"https://github.com/proxiex/More-Recipes.git","svn_url":"https://github.com/proxiex/More-Recipes","homepage":null,"size":2437,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/proxiex/More-Recipes/pulls/19"},"html":{"href":"https://github.com/proxiex/More-Recipes/pull/19"},"issue":{"href":"https://api.github.com/repos/proxiex/More-Recipes/issues/19"},"comments":{"href":"https://api.github.com/repos/proxiex/More-Recipes/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/proxiex/More-Recipes/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/proxiex/More-Recipes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/proxiex/More-Recipes/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/proxiex/More-Recipes/statuses/8e21938bfc77b4e58f89bc665284430c20b4fa8b"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}