{"action":"created","comment":{"url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/pulls/comments/103732105","pull_request_review_id":24528524,"id":103732105,"diff_hunk":"@@ -0,0 +1,117 @@\n+'use strict';\n+\n+const expect = require('chai').expect;\n+const request = require('superagent');\n+const Drink = require('../model/drink.js');\n+const PORT = process.env.PORT || 3000;\n+const url = `http://localhost:${PORT}`;\n+\n+require('../server.js');\n+\n+const exampleDrink = {\n+  temp: 'hot test',\n+  size: 'small test',\n+  name: 'example test'\n+};\n+\n+describe('Drink Routes', function(){\n+  describe('GET: /api/drink', function(){\n+    before( done => {\n+      Drink.createDrink(exampleDrink)\n+      .then( drink => {\n+        this.tempDrink = drink;\n+        done();\n+      })\n+      .catch( err => done(err));\n+    });\n+\n+    after (done => {\n+      Drink.deleteDrink(this.tempDrink.id)\n+      .then( () => done() )\n+      .catch( err => done(err));\n+    });\n+    it('should return a drink', done => {\n+      request.get(`${url}/api/drink/${this.tempDrink.id}`)\n+      .end((err, res) => {\n+        if (err) return done(err);\n+        expect(res.status).to.equal(200);\n+        expect(res.body.id).to.equal(this.tempDrink.id);\n+        expect(res.body.name).to.equal(this.tempDrink.name);\n+        expect(res.body.content).to.equal(this.tempDrink.content);","path":"lab-regan/test/drink-route-test.js","position":40,"original_position":40,"commit_id":"5838d01a3bc3dddbd9b3349c0d4c411e3630c5db","original_commit_id":"5838d01a3bc3dddbd9b3349c0d4c411e3630c5db","user":{"login":"jalleng","id":11604389,"avatar_url":"https://avatars0.githubusercontent.com/u/11604389?v=3","gravatar_id":"","url":"https://api.github.com/users/jalleng","html_url":"https://github.com/jalleng","followers_url":"https://api.github.com/users/jalleng/followers","following_url":"https://api.github.com/users/jalleng/following{/other_user}","gists_url":"https://api.github.com/users/jalleng/gists{/gist_id}","starred_url":"https://api.github.com/users/jalleng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalleng/subscriptions","organizations_url":"https://api.github.com/users/jalleng/orgs","repos_url":"https://api.github.com/users/jalleng/repos","events_url":"https://api.github.com/users/jalleng/events{/privacy}","received_events_url":"https://api.github.com/users/jalleng/received_events","type":"User","site_admin":false},"body":"Make sure you are checking for the properties that you set on the tempDrink.","created_at":"2017-03-01T16:50:19Z","updated_at":"2017-03-01T16:50:19Z","html_url":"https://github.com/codefellows-javascript-401d13/12-express_middleware/pull/7#discussion_r103732105","pull_request_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/pulls/comments/103732105"},"html":{"href":"https://github.com/codefellows-javascript-401d13/12-express_middleware/pull/7#discussion_r103732105"},"pull_request":{"href":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/pulls/7","id":108469075,"html_url":"https://github.com/codefellows-javascript-401d13/12-express_middleware/pull/7","diff_url":"https://github.com/codefellows-javascript-401d13/12-express_middleware/pull/7.diff","patch_url":"https://github.com/codefellows-javascript-401d13/12-express_middleware/pull/7.patch","issue_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/issues/7","number":7,"state":"open","locked":false,"title":"lab-regan","user":{"login":"reganoneill","id":13720327,"avatar_url":"https://avatars0.githubusercontent.com/u/13720327?v=3","gravatar_id":"","url":"https://api.github.com/users/reganoneill","html_url":"https://github.com/reganoneill","followers_url":"https://api.github.com/users/reganoneill/followers","following_url":"https://api.github.com/users/reganoneill/following{/other_user}","gists_url":"https://api.github.com/users/reganoneill/gists{/gist_id}","starred_url":"https://api.github.com/users/reganoneill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reganoneill/subscriptions","organizations_url":"https://api.github.com/users/reganoneill/orgs","repos_url":"https://api.github.com/users/reganoneill/repos","events_url":"https://api.github.com/users/reganoneill/events{/privacy}","received_events_url":"https://api.github.com/users/reganoneill/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-01T05:14:18Z","updated_at":"2017-03-01T16:50:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"850e9e7b26b153995af908c54891a3c9138972dd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/pulls/7/commits","review_comments_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/pulls/7/comments","review_comment_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/issues/7/comments","statuses_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/statuses/5838d01a3bc3dddbd9b3349c0d4c411e3630c5db","head":{"label":"reganoneill:lab12","ref":"lab12","sha":"5838d01a3bc3dddbd9b3349c0d4c411e3630c5db","user":{"login":"reganoneill","id":13720327,"avatar_url":"https://avatars0.githubusercontent.com/u/13720327?v=3","gravatar_id":"","url":"https://api.github.com/users/reganoneill","html_url":"https://github.com/reganoneill","followers_url":"https://api.github.com/users/reganoneill/followers","following_url":"https://api.github.com/users/reganoneill/following{/other_user}","gists_url":"https://api.github.com/users/reganoneill/gists{/gist_id}","starred_url":"https://api.github.com/users/reganoneill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reganoneill/subscriptions","organizations_url":"https://api.github.com/users/reganoneill/orgs","repos_url":"https://api.github.com/users/reganoneill/repos","events_url":"https://api.github.com/users/reganoneill/events{/privacy}","received_events_url":"https://api.github.com/users/reganoneill/received_events","type":"User","site_admin":false},"repo":{"id":83478896,"name":"12-express_middleware","full_name":"reganoneill/12-express_middleware","owner":{"login":"reganoneill","id":13720327,"avatar_url":"https://avatars0.githubusercontent.com/u/13720327?v=3","gravatar_id":"","url":"https://api.github.com/users/reganoneill","html_url":"https://github.com/reganoneill","followers_url":"https://api.github.com/users/reganoneill/followers","following_url":"https://api.github.com/users/reganoneill/following{/other_user}","gists_url":"https://api.github.com/users/reganoneill/gists{/gist_id}","starred_url":"https://api.github.com/users/reganoneill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reganoneill/subscriptions","organizations_url":"https://api.github.com/users/reganoneill/orgs","repos_url":"https://api.github.com/users/reganoneill/repos","events_url":"https://api.github.com/users/reganoneill/events{/privacy}","received_events_url":"https://api.github.com/users/reganoneill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/reganoneill/12-express_middleware","description":"Lab 12 - Express Middleware","fork":true,"url":"https://api.github.com/repos/reganoneill/12-express_middleware","forks_url":"https://api.github.com/repos/reganoneill/12-express_middleware/forks","keys_url":"https://api.github.com/repos/reganoneill/12-express_middleware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reganoneill/12-express_middleware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reganoneill/12-express_middleware/teams","hooks_url":"https://api.github.com/repos/reganoneill/12-express_middleware/hooks","issue_events_url":"https://api.github.com/repos/reganoneill/12-express_middleware/issues/events{/number}","events_url":"https://api.github.com/repos/reganoneill/12-express_middleware/events","assignees_url":"https://api.github.com/repos/reganoneill/12-express_middleware/assignees{/user}","branches_url":"https://api.github.com/repos/reganoneill/12-express_middleware/branches{/branch}","tags_url":"https://api.github.com/repos/reganoneill/12-express_middleware/tags","blobs_url":"https://api.github.com/repos/reganoneill/12-express_middleware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reganoneill/12-express_middleware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reganoneill/12-express_middleware/git/refs{/sha}","trees_url":"https://api.github.com/repos/reganoneill/12-express_middleware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reganoneill/12-express_middleware/statuses/{sha}","languages_url":"https://api.github.com/repos/reganoneill/12-express_middleware/languages","stargazers_url":"https://api.github.com/repos/reganoneill/12-express_middleware/stargazers","contributors_url":"https://api.github.com/repos/reganoneill/12-express_middleware/contributors","subscribers_url":"https://api.github.com/repos/reganoneill/12-express_middleware/subscribers","subscription_url":"https://api.github.com/repos/reganoneill/12-express_middleware/subscription","commits_url":"https://api.github.com/repos/reganoneill/12-express_middleware/commits{/sha}","git_commits_url":"https://api.github.com/repos/reganoneill/12-express_middleware/git/commits{/sha}","comments_url":"https://api.github.com/repos/reganoneill/12-express_middleware/comments{/number}","issue_comment_url":"https://api.github.com/repos/reganoneill/12-express_middleware/issues/comments{/number}","contents_url":"https://api.github.com/repos/reganoneill/12-express_middleware/contents/{+path}","compare_url":"https://api.github.com/repos/reganoneill/12-express_middleware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reganoneill/12-express_middleware/merges","archive_url":"https://api.github.com/repos/reganoneill/12-express_middleware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reganoneill/12-express_middleware/downloads","issues_url":"https://api.github.com/repos/reganoneill/12-express_middleware/issues{/number}","pulls_url":"https://api.github.com/repos/reganoneill/12-express_middleware/pulls{/number}","milestones_url":"https://api.github.com/repos/reganoneill/12-express_middleware/milestones{/number}","notifications_url":"https://api.github.com/repos/reganoneill/12-express_middleware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reganoneill/12-express_middleware/labels{/name}","releases_url":"https://api.github.com/repos/reganoneill/12-express_middleware/releases{/id}","deployments_url":"https://api.github.com/repos/reganoneill/12-express_middleware/deployments","created_at":"2017-02-28T21:03:14Z","updated_at":"2017-03-01T05:13:34Z","pushed_at":"2017-03-01T05:13:33Z","git_url":"git://github.com/reganoneill/12-express_middleware.git","ssh_url":"git@github.com:reganoneill/12-express_middleware.git","clone_url":"https://github.com/reganoneill/12-express_middleware.git","svn_url":"https://github.com/reganoneill/12-express_middleware","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codefellows-javascript-401d13:master","ref":"master","sha":"bf03a8d1e42c356bb76d3d092c71c99ed1f9131e","user":{"login":"codefellows-javascript-401d13","id":25670587,"avatar_url":"https://avatars2.githubusercontent.com/u/25670587?v=3","gravatar_id":"","url":"https://api.github.com/users/codefellows-javascript-401d13","html_url":"https://github.com/codefellows-javascript-401d13","followers_url":"https://api.github.com/users/codefellows-javascript-401d13/followers","following_url":"https://api.github.com/users/codefellows-javascript-401d13/following{/other_user}","gists_url":"https://api.github.com/users/codefellows-javascript-401d13/gists{/gist_id}","starred_url":"https://api.github.com/users/codefellows-javascript-401d13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefellows-javascript-401d13/subscriptions","organizations_url":"https://api.github.com/users/codefellows-javascript-401d13/orgs","repos_url":"https://api.github.com/users/codefellows-javascript-401d13/repos","events_url":"https://api.github.com/users/codefellows-javascript-401d13/events{/privacy}","received_events_url":"https://api.github.com/users/codefellows-javascript-401d13/received_events","type":"Organization","site_admin":false},"repo":{"id":83475857,"name":"12-express_middleware","full_name":"codefellows-javascript-401d13/12-express_middleware","owner":{"login":"codefellows-javascript-401d13","id":25670587,"avatar_url":"https://avatars2.githubusercontent.com/u/25670587?v=3","gravatar_id":"","url":"https://api.github.com/users/codefellows-javascript-401d13","html_url":"https://github.com/codefellows-javascript-401d13","followers_url":"https://api.github.com/users/codefellows-javascript-401d13/followers","following_url":"https://api.github.com/users/codefellows-javascript-401d13/following{/other_user}","gists_url":"https://api.github.com/users/codefellows-javascript-401d13/gists{/gist_id}","starred_url":"https://api.github.com/users/codefellows-javascript-401d13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefellows-javascript-401d13/subscriptions","organizations_url":"https://api.github.com/users/codefellows-javascript-401d13/orgs","repos_url":"https://api.github.com/users/codefellows-javascript-401d13/repos","events_url":"https://api.github.com/users/codefellows-javascript-401d13/events{/privacy}","received_events_url":"https://api.github.com/users/codefellows-javascript-401d13/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codefellows-javascript-401d13/12-express_middleware","description":"Lab 12 - Express Middleware","fork":false,"url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware","forks_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/forks","keys_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/teams","hooks_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/hooks","issue_events_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/issues/events{/number}","events_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/events","assignees_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/assignees{/user}","branches_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/branches{/branch}","tags_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/tags","blobs_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/git/refs{/sha}","trees_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/statuses/{sha}","languages_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/languages","stargazers_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/stargazers","contributors_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/contributors","subscribers_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/subscribers","subscription_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/subscription","commits_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/commits{/sha}","git_commits_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/git/commits{/sha}","comments_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/comments{/number}","issue_comment_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/issues/comments{/number}","contents_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/contents/{+path}","compare_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/merges","archive_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/downloads","issues_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/issues{/number}","pulls_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/pulls{/number}","milestones_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/milestones{/number}","notifications_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/labels{/name}","releases_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/releases{/id}","deployments_url":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/deployments","created_at":"2017-02-28T20:25:56Z","updated_at":"2017-02-28T20:25:56Z","pushed_at":"2017-03-01T07:58:59Z","git_url":"git://github.com/codefellows-javascript-401d13/12-express_middleware.git","ssh_url":"git@github.com:codefellows-javascript-401d13/12-express_middleware.git","clone_url":"https://github.com/codefellows-javascript-401d13/12-express_middleware.git","svn_url":"https://github.com/codefellows-javascript-401d13/12-express_middleware","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":16,"forks":17,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/pulls/7"},"html":{"href":"https://github.com/codefellows-javascript-401d13/12-express_middleware/pull/7"},"issue":{"href":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/issues/7"},"comments":{"href":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/codefellows-javascript-401d13/12-express_middleware/statuses/5838d01a3bc3dddbd9b3349c0d4c411e3630c5db"}}}}
{"actor":{"display_login":"jalleng"}}