{"action":"created","comment":{"url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/pulls/comments/181831143","pull_request_review_id":112523858,"id":181831143,"diff_hunk":"@@ -0,0 +1,89 @@\n+require('dotenv').config({ path: './test/.env' });\n+const chai = require('chai');\n+const chaiHttp = require('chai-http');\n+const client = require('../lib/db-client');\n+const app = require('../lib/app');\n+\n+const { assert } = chai;\n+chai.use(chaiHttp);\n+\n+\n+describe('doggos', () => {\n+\n+    before(() => client.query(`DELETE FROM doggos;`));\n+\n+    let latte = {\n+        name: 'latte',\n+        breed: 'smoosh',\n+        skill: 'sitting like a hooman'\n+    };\n+\n+    let bubdow = {\n+        name: 'bubdow',\n+        breed: 'pibble',\n+        skill: 'being a punk'\n+    };\n+\n+    before(() => {\n+        return chai.request(app)\n+            .post('/doggos')\n+            .send(latte)\n+            .then(({ body }) => {\n+                assert.equal(body.name, latte.name);\n+                assert.equal(body.skill, latte.skill);\n+                latte = body;\n+            });\n+    });\n+\n+    it('saves a pet', () => {\n+        assert.ok(latte.id);\n+    });\n+\n+    it('gets a pet by id', () => {\n+        return chai.request(app)\n+            .get(`/doggos/${latte.id}`)\n+            .then(({ body }) => {\n+                assert.deepEqual(body, latte);\n+            });\n+    });\n+\n+    it.skip('update a pet', () => {","path":"test/doggos.test.js","position":50,"original_position":50,"commit_id":"fd614761bf1292d162ac86830757617465f2cfe2","original_commit_id":"fd614761bf1292d162ac86830757617465f2cfe2","user":{"login":"jklipton","id":33382995,"avatar_url":"https://avatars0.githubusercontent.com/u/33382995?v=4","gravatar_id":"","url":"https://api.github.com/users/jklipton","html_url":"https://github.com/jklipton","followers_url":"https://api.github.com/users/jklipton/followers","following_url":"https://api.github.com/users/jklipton/following{/other_user}","gists_url":"https://api.github.com/users/jklipton/gists{/gist_id}","starred_url":"https://api.github.com/users/jklipton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jklipton/subscriptions","organizations_url":"https://api.github.com/users/jklipton/orgs","repos_url":"https://api.github.com/users/jklipton/repos","events_url":"https://api.github.com/users/jklipton/events{/privacy}","received_events_url":"https://api.github.com/users/jklipton/received_events","type":"User","site_admin":false},"body":"I couldn't get it to work.  Moved on :(","created_at":"2018-04-16T17:54:15Z","updated_at":"2018-04-16T17:54:15Z","html_url":"https://github.com/alchemy-fullstack-js-spring-2018/http-routes/pull/14#discussion_r181831143","pull_request_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/pulls/14","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/pulls/comments/181831143"},"html":{"href":"https://github.com/alchemy-fullstack-js-spring-2018/http-routes/pull/14#discussion_r181831143"},"pull_request":{"href":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/pulls/14"}},"in_reply_to_id":181460942},"pull_request":{"url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/pulls/14","id":181311579,"html_url":"https://github.com/alchemy-fullstack-js-spring-2018/http-routes/pull/14","diff_url":"https://github.com/alchemy-fullstack-js-spring-2018/http-routes/pull/14.diff","patch_url":"https://github.com/alchemy-fullstack-js-spring-2018/http-routes/pull/14.patch","issue_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/issues/14","number":14,"state":"open","locked":false,"title":"jklipton","user":{"login":"jklipton","id":33382995,"avatar_url":"https://avatars0.githubusercontent.com/u/33382995?v=4","gravatar_id":"","url":"https://api.github.com/users/jklipton","html_url":"https://github.com/jklipton","followers_url":"https://api.github.com/users/jklipton/followers","following_url":"https://api.github.com/users/jklipton/following{/other_user}","gists_url":"https://api.github.com/users/jklipton/gists{/gist_id}","starred_url":"https://api.github.com/users/jklipton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jklipton/subscriptions","organizations_url":"https://api.github.com/users/jklipton/orgs","repos_url":"https://api.github.com/users/jklipton/repos","events_url":"https://api.github.com/users/jklipton/events{/privacy}","received_events_url":"https://api.github.com/users/jklipton/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-12T20:06:58Z","updated_at":"2018-04-16T17:54:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73e9188f3c123362185bf950f56828c423196b83","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/pulls/14/commits","review_comments_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/pulls/14/comments","review_comment_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/issues/14/comments","statuses_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/statuses/fd614761bf1292d162ac86830757617465f2cfe2","head":{"label":"jklipton:routes","ref":"routes","sha":"fd614761bf1292d162ac86830757617465f2cfe2","user":{"login":"jklipton","id":33382995,"avatar_url":"https://avatars0.githubusercontent.com/u/33382995?v=4","gravatar_id":"","url":"https://api.github.com/users/jklipton","html_url":"https://github.com/jklipton","followers_url":"https://api.github.com/users/jklipton/followers","following_url":"https://api.github.com/users/jklipton/following{/other_user}","gists_url":"https://api.github.com/users/jklipton/gists{/gist_id}","starred_url":"https://api.github.com/users/jklipton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jklipton/subscriptions","organizations_url":"https://api.github.com/users/jklipton/orgs","repos_url":"https://api.github.com/users/jklipton/repos","events_url":"https://api.github.com/users/jklipton/events{/privacy}","received_events_url":"https://api.github.com/users/jklipton/received_events","type":"User","site_admin":false},"repo":{"id":129164400,"name":"http-routes","full_name":"jklipton/http-routes","owner":{"login":"jklipton","id":33382995,"avatar_url":"https://avatars0.githubusercontent.com/u/33382995?v=4","gravatar_id":"","url":"https://api.github.com/users/jklipton","html_url":"https://github.com/jklipton","followers_url":"https://api.github.com/users/jklipton/followers","following_url":"https://api.github.com/users/jklipton/following{/other_user}","gists_url":"https://api.github.com/users/jklipton/gists{/gist_id}","starred_url":"https://api.github.com/users/jklipton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jklipton/subscriptions","organizations_url":"https://api.github.com/users/jklipton/orgs","repos_url":"https://api.github.com/users/jklipton/repos","events_url":"https://api.github.com/users/jklipton/events{/privacy}","received_events_url":"https://api.github.com/users/jklipton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jklipton/http-routes","description":null,"fork":true,"url":"https://api.github.com/repos/jklipton/http-routes","forks_url":"https://api.github.com/repos/jklipton/http-routes/forks","keys_url":"https://api.github.com/repos/jklipton/http-routes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jklipton/http-routes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jklipton/http-routes/teams","hooks_url":"https://api.github.com/repos/jklipton/http-routes/hooks","issue_events_url":"https://api.github.com/repos/jklipton/http-routes/issues/events{/number}","events_url":"https://api.github.com/repos/jklipton/http-routes/events","assignees_url":"https://api.github.com/repos/jklipton/http-routes/assignees{/user}","branches_url":"https://api.github.com/repos/jklipton/http-routes/branches{/branch}","tags_url":"https://api.github.com/repos/jklipton/http-routes/tags","blobs_url":"https://api.github.com/repos/jklipton/http-routes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jklipton/http-routes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jklipton/http-routes/git/refs{/sha}","trees_url":"https://api.github.com/repos/jklipton/http-routes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jklipton/http-routes/statuses/{sha}","languages_url":"https://api.github.com/repos/jklipton/http-routes/languages","stargazers_url":"https://api.github.com/repos/jklipton/http-routes/stargazers","contributors_url":"https://api.github.com/repos/jklipton/http-routes/contributors","subscribers_url":"https://api.github.com/repos/jklipton/http-routes/subscribers","subscription_url":"https://api.github.com/repos/jklipton/http-routes/subscription","commits_url":"https://api.github.com/repos/jklipton/http-routes/commits{/sha}","git_commits_url":"https://api.github.com/repos/jklipton/http-routes/git/commits{/sha}","comments_url":"https://api.github.com/repos/jklipton/http-routes/comments{/number}","issue_comment_url":"https://api.github.com/repos/jklipton/http-routes/issues/comments{/number}","contents_url":"https://api.github.com/repos/jklipton/http-routes/contents/{+path}","compare_url":"https://api.github.com/repos/jklipton/http-routes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jklipton/http-routes/merges","archive_url":"https://api.github.com/repos/jklipton/http-routes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jklipton/http-routes/downloads","issues_url":"https://api.github.com/repos/jklipton/http-routes/issues{/number}","pulls_url":"https://api.github.com/repos/jklipton/http-routes/pulls{/number}","milestones_url":"https://api.github.com/repos/jklipton/http-routes/milestones{/number}","notifications_url":"https://api.github.com/repos/jklipton/http-routes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jklipton/http-routes/labels{/name}","releases_url":"https://api.github.com/repos/jklipton/http-routes/releases{/id}","deployments_url":"https://api.github.com/repos/jklipton/http-routes/deployments","created_at":"2018-04-11T23:07:37Z","updated_at":"2018-04-11T23:07:39Z","pushed_at":"2018-04-13T00:37:57Z","git_url":"git://github.com/jklipton/http-routes.git","ssh_url":"git@github.com:jklipton/http-routes.git","clone_url":"https://github.com/jklipton/http-routes.git","svn_url":"https://github.com/jklipton/http-routes","homepage":null,"size":53,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"alchemy-fullstack-js-spring-2018:jklipton","ref":"jklipton","sha":"451eb10bf5ea0586b984d197dfd2dce9e36a162b","user":{"login":"alchemy-fullstack-js-spring-2018","id":37879630,"avatar_url":"https://avatars1.githubusercontent.com/u/37879630?v=4","gravatar_id":"","url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018","html_url":"https://github.com/alchemy-fullstack-js-spring-2018","followers_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/followers","following_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/following{/other_user}","gists_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/subscriptions","organizations_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/orgs","repos_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/repos","events_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/events{/privacy}","received_events_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/received_events","type":"Organization","site_admin":false},"repo":{"id":129141198,"name":"http-routes","full_name":"alchemy-fullstack-js-spring-2018/http-routes","owner":{"login":"alchemy-fullstack-js-spring-2018","id":37879630,"avatar_url":"https://avatars1.githubusercontent.com/u/37879630?v=4","gravatar_id":"","url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018","html_url":"https://github.com/alchemy-fullstack-js-spring-2018","followers_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/followers","following_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/following{/other_user}","gists_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/subscriptions","organizations_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/orgs","repos_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/repos","events_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/events{/privacy}","received_events_url":"https://api.github.com/users/alchemy-fullstack-js-spring-2018/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alchemy-fullstack-js-spring-2018/http-routes","description":null,"fork":false,"url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes","forks_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/forks","keys_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/teams","hooks_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/hooks","issue_events_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/issues/events{/number}","events_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/events","assignees_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/assignees{/user}","branches_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/branches{/branch}","tags_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/tags","blobs_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/git/refs{/sha}","trees_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/statuses/{sha}","languages_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/languages","stargazers_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/stargazers","contributors_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/contributors","subscribers_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/subscribers","subscription_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/subscription","commits_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/commits{/sha}","git_commits_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/git/commits{/sha}","comments_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/comments{/number}","issue_comment_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/issues/comments{/number}","contents_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/contents/{+path}","compare_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/merges","archive_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/downloads","issues_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/issues{/number}","pulls_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/pulls{/number}","milestones_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/milestones{/number}","notifications_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/labels{/name}","releases_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/releases{/id}","deployments_url":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/deployments","created_at":"2018-04-11T19:04:00Z","updated_at":"2018-04-11T19:13:52Z","pushed_at":"2018-04-16T04:35:05Z","git_url":"git://github.com/alchemy-fullstack-js-spring-2018/http-routes.git","ssh_url":"git@github.com:alchemy-fullstack-js-spring-2018/http-routes.git","clone_url":"https://github.com/alchemy-fullstack-js-spring-2018/http-routes.git","svn_url":"https://github.com/alchemy-fullstack-js-spring-2018/http-routes","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":12,"license":null,"forks":14,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/pulls/14"},"html":{"href":"https://github.com/alchemy-fullstack-js-spring-2018/http-routes/pull/14"},"issue":{"href":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/issues/14"},"comments":{"href":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/alchemy-fullstack-js-spring-2018/http-routes/statuses/fd614761bf1292d162ac86830757617465f2cfe2"}},"author_association":"NONE"}}
{"actor":{"display_login":"jklipton"}}