{"action":"created","comment":{"url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/pulls/comments/221316798","pull_request_review_id":159941277,"id":221316798,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTMxNjc5OA==","diff_hunk":"@@ -0,0 +1,82 @@\n+const assert = require('assert');\n+const path = require('path');\n+const rimraf = require('rimraf');\n+const mkdirp = require('mkdirp');\n+const Store = require('../lib/store.js');\n+\n+describe('Store Database', () => {\n+\n+    const rootDirectory = path.join(__dirname, 'database');\n+    const store = new Store(rootDirectory);\n+\n+    beforeEach(done => {\n+        return rimraf(rootDirectory, err => {\n+            err && err.code !== 'ENOENT' ? done(err) : done();\n+        });\n+    });\n+\n+    beforeEach(() => {\n+        return mkdirp(rootDirectory);\n+    });\n+\n+    it('saves a file to the database with a shortid', done => {\n+        store.save({ file: 'file contents' }, (err, object) => {\n+            err ? done(err) : assert.ok(object);","path":"test/store.test.js","position":24,"original_position":24,"commit_id":"6feb5f5de9c792e1db6fff205024469200054cb6","original_commit_id":"6feb5f5de9c792e1db6fff205024469200054cb6","user":{"login":"mehtaphysical","id":1251420,"node_id":"MDQ6VXNlcjEyNTE0MjA=","avatar_url":"https://avatars3.githubusercontent.com/u/1251420?v=4","gravatar_id":"","url":"https://api.github.com/users/mehtaphysical","html_url":"https://github.com/mehtaphysical","followers_url":"https://api.github.com/users/mehtaphysical/followers","following_url":"https://api.github.com/users/mehtaphysical/following{/other_user}","gists_url":"https://api.github.com/users/mehtaphysical/gists{/gist_id}","starred_url":"https://api.github.com/users/mehtaphysical/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehtaphysical/subscriptions","organizations_url":"https://api.github.com/users/mehtaphysical/orgs","repos_url":"https://api.github.com/users/mehtaphysical/repos","events_url":"https://api.github.com/users/mehtaphysical/events{/privacy}","received_events_url":"https://api.github.com/users/mehtaphysical/received_events","type":"User","site_admin":false},"body":"You should test that object actually looks like what you expect","created_at":"2018-09-28T16:52:33Z","updated_at":"2018-09-28T16:52:33Z","html_url":"https://github.com/alchemy-fullstack-js-fall-2018/simple-database/pull/1#discussion_r221316798","pull_request_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/pulls/1","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/pulls/comments/221316798"},"html":{"href":"https://github.com/alchemy-fullstack-js-fall-2018/simple-database/pull/1#discussion_r221316798"},"pull_request":{"href":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/pulls/1","id":218489122,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4NDg5MTIy","html_url":"https://github.com/alchemy-fullstack-js-fall-2018/simple-database/pull/1","diff_url":"https://github.com/alchemy-fullstack-js-fall-2018/simple-database/pull/1.diff","patch_url":"https://github.com/alchemy-fullstack-js-fall-2018/simple-database/pull/1.patch","issue_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/issues/1","number":1,"state":"open","locked":false,"title":"Simple Database ","user":{"login":"RyLuras","id":33019742,"node_id":"MDQ6VXNlcjMzMDE5NzQy","avatar_url":"https://avatars1.githubusercontent.com/u/33019742?v=4","gravatar_id":"","url":"https://api.github.com/users/RyLuras","html_url":"https://github.com/RyLuras","followers_url":"https://api.github.com/users/RyLuras/followers","following_url":"https://api.github.com/users/RyLuras/following{/other_user}","gists_url":"https://api.github.com/users/RyLuras/gists{/gist_id}","starred_url":"https://api.github.com/users/RyLuras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyLuras/subscriptions","organizations_url":"https://api.github.com/users/RyLuras/orgs","repos_url":"https://api.github.com/users/RyLuras/repos","events_url":"https://api.github.com/users/RyLuras/events{/privacy}","received_events_url":"https://api.github.com/users/RyLuras/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-27T00:08:40Z","updated_at":"2018-09-28T16:52:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"98f7a220795f62cddd702d2c59034ba52386a52e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/pulls/1/commits","review_comments_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/pulls/1/comments","review_comment_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/issues/1/comments","statuses_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/statuses/6feb5f5de9c792e1db6fff205024469200054cb6","head":{"label":"RyLuras:master","ref":"master","sha":"6feb5f5de9c792e1db6fff205024469200054cb6","user":{"login":"RyLuras","id":33019742,"node_id":"MDQ6VXNlcjMzMDE5NzQy","avatar_url":"https://avatars1.githubusercontent.com/u/33019742?v=4","gravatar_id":"","url":"https://api.github.com/users/RyLuras","html_url":"https://github.com/RyLuras","followers_url":"https://api.github.com/users/RyLuras/followers","following_url":"https://api.github.com/users/RyLuras/following{/other_user}","gists_url":"https://api.github.com/users/RyLuras/gists{/gist_id}","starred_url":"https://api.github.com/users/RyLuras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyLuras/subscriptions","organizations_url":"https://api.github.com/users/RyLuras/orgs","repos_url":"https://api.github.com/users/RyLuras/repos","events_url":"https://api.github.com/users/RyLuras/events{/privacy}","received_events_url":"https://api.github.com/users/RyLuras/received_events","type":"User","site_admin":false},"repo":{"id":150482677,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA0ODI2Nzc=","name":"simple-database-1","full_name":"RyLuras/simple-database-1","private":false,"owner":{"login":"RyLuras","id":33019742,"node_id":"MDQ6VXNlcjMzMDE5NzQy","avatar_url":"https://avatars1.githubusercontent.com/u/33019742?v=4","gravatar_id":"","url":"https://api.github.com/users/RyLuras","html_url":"https://github.com/RyLuras","followers_url":"https://api.github.com/users/RyLuras/followers","following_url":"https://api.github.com/users/RyLuras/following{/other_user}","gists_url":"https://api.github.com/users/RyLuras/gists{/gist_id}","starred_url":"https://api.github.com/users/RyLuras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyLuras/subscriptions","organizations_url":"https://api.github.com/users/RyLuras/orgs","repos_url":"https://api.github.com/users/RyLuras/repos","events_url":"https://api.github.com/users/RyLuras/events{/privacy}","received_events_url":"https://api.github.com/users/RyLuras/received_events","type":"User","site_admin":false},"html_url":"https://github.com/RyLuras/simple-database-1","description":null,"fork":true,"url":"https://api.github.com/repos/RyLuras/simple-database-1","forks_url":"https://api.github.com/repos/RyLuras/simple-database-1/forks","keys_url":"https://api.github.com/repos/RyLuras/simple-database-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RyLuras/simple-database-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RyLuras/simple-database-1/teams","hooks_url":"https://api.github.com/repos/RyLuras/simple-database-1/hooks","issue_events_url":"https://api.github.com/repos/RyLuras/simple-database-1/issues/events{/number}","events_url":"https://api.github.com/repos/RyLuras/simple-database-1/events","assignees_url":"https://api.github.com/repos/RyLuras/simple-database-1/assignees{/user}","branches_url":"https://api.github.com/repos/RyLuras/simple-database-1/branches{/branch}","tags_url":"https://api.github.com/repos/RyLuras/simple-database-1/tags","blobs_url":"https://api.github.com/repos/RyLuras/simple-database-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RyLuras/simple-database-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RyLuras/simple-database-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/RyLuras/simple-database-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RyLuras/simple-database-1/statuses/{sha}","languages_url":"https://api.github.com/repos/RyLuras/simple-database-1/languages","stargazers_url":"https://api.github.com/repos/RyLuras/simple-database-1/stargazers","contributors_url":"https://api.github.com/repos/RyLuras/simple-database-1/contributors","subscribers_url":"https://api.github.com/repos/RyLuras/simple-database-1/subscribers","subscription_url":"https://api.github.com/repos/RyLuras/simple-database-1/subscription","commits_url":"https://api.github.com/repos/RyLuras/simple-database-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/RyLuras/simple-database-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/RyLuras/simple-database-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/RyLuras/simple-database-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/RyLuras/simple-database-1/contents/{+path}","compare_url":"https://api.github.com/repos/RyLuras/simple-database-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RyLuras/simple-database-1/merges","archive_url":"https://api.github.com/repos/RyLuras/simple-database-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RyLuras/simple-database-1/downloads","issues_url":"https://api.github.com/repos/RyLuras/simple-database-1/issues{/number}","pulls_url":"https://api.github.com/repos/RyLuras/simple-database-1/pulls{/number}","milestones_url":"https://api.github.com/repos/RyLuras/simple-database-1/milestones{/number}","notifications_url":"https://api.github.com/repos/RyLuras/simple-database-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RyLuras/simple-database-1/labels{/name}","releases_url":"https://api.github.com/repos/RyLuras/simple-database-1/releases{/id}","deployments_url":"https://api.github.com/repos/RyLuras/simple-database-1/deployments","created_at":"2018-09-26T19:57:09Z","updated_at":"2018-09-27T20:51:24Z","pushed_at":"2018-09-27T20:51:23Z","git_url":"git://github.com/RyLuras/simple-database-1.git","ssh_url":"git@github.com:RyLuras/simple-database-1.git","clone_url":"https://github.com/RyLuras/simple-database-1.git","svn_url":"https://github.com/RyLuras/simple-database-1","homepage":null,"size":58,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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-fall-2018:RyLuras","ref":"RyLuras","sha":"64c95109258877a16806ae775bd37c0dca235be2","user":{"login":"alchemy-fullstack-js-fall-2018","id":43481968,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNDgxOTY4","avatar_url":"https://avatars1.githubusercontent.com/u/43481968?v=4","gravatar_id":"","url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018","html_url":"https://github.com/alchemy-fullstack-js-fall-2018","followers_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/followers","following_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/following{/other_user}","gists_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/subscriptions","organizations_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/orgs","repos_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/repos","events_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/events{/privacy}","received_events_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/received_events","type":"Organization","site_admin":false},"repo":{"id":149853228,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk4NTMyMjg=","name":"simple-database","full_name":"alchemy-fullstack-js-fall-2018/simple-database","private":false,"owner":{"login":"alchemy-fullstack-js-fall-2018","id":43481968,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNDgxOTY4","avatar_url":"https://avatars1.githubusercontent.com/u/43481968?v=4","gravatar_id":"","url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018","html_url":"https://github.com/alchemy-fullstack-js-fall-2018","followers_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/followers","following_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/following{/other_user}","gists_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/subscriptions","organizations_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/orgs","repos_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/repos","events_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/events{/privacy}","received_events_url":"https://api.github.com/users/alchemy-fullstack-js-fall-2018/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/alchemy-fullstack-js-fall-2018/simple-database","description":null,"fork":false,"url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database","forks_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/forks","keys_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/teams","hooks_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/hooks","issue_events_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/issues/events{/number}","events_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/events","assignees_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/assignees{/user}","branches_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/branches{/branch}","tags_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/tags","blobs_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/git/refs{/sha}","trees_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/statuses/{sha}","languages_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/languages","stargazers_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/stargazers","contributors_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/contributors","subscribers_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/subscribers","subscription_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/subscription","commits_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/commits{/sha}","git_commits_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/git/commits{/sha}","comments_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/comments{/number}","issue_comment_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/issues/comments{/number}","contents_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/contents/{+path}","compare_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/merges","archive_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/downloads","issues_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/issues{/number}","pulls_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/pulls{/number}","milestones_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/milestones{/number}","notifications_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/labels{/name}","releases_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/releases{/id}","deployments_url":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/deployments","created_at":"2018-09-22T06:53:04Z","updated_at":"2018-09-26T17:56:50Z","pushed_at":"2018-09-28T13:52:12Z","git_url":"git://github.com/alchemy-fullstack-js-fall-2018/simple-database.git","ssh_url":"git@github.com:alchemy-fullstack-js-fall-2018/simple-database.git","clone_url":"https://github.com/alchemy-fullstack-js-fall-2018/simple-database.git","svn_url":"https://github.com/alchemy-fullstack-js-fall-2018/simple-database","homepage":null,"size":7,"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":10,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":10,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/pulls/1"},"html":{"href":"https://github.com/alchemy-fullstack-js-fall-2018/simple-database/pull/1"},"issue":{"href":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/issues/1"},"comments":{"href":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/alchemy-fullstack-js-fall-2018/simple-database/statuses/6feb5f5de9c792e1db6fff205024469200054cb6"}},"author_association":"NONE"}}
{"actor":{"display_login":"mehtaphysical"}}