{"action":"created","comment":{"url":"https://api.github.com/repos/datarockets/loopback-to-do/pulls/comments/239879140","pull_request_review_id":182786493,"id":239879140,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTg3OTE0MA==","diff_hunk":"@@ -0,0 +1,10 @@\n+import { beforeAll, afterAll } from 'hooks'\n+import db from '../../../src/models'","path":"server/spec/unit/controllers/index.hook.js","position":2,"original_position":2,"commit_id":"6065bef4229991e1cc8aeed06a14534cf1249cc1","original_commit_id":"6065bef4229991e1cc8aeed06a14534cf1249cc1","user":{"login":"nikitasakov","id":32716983,"node_id":"MDQ6VXNlcjMyNzE2OTgz","avatar_url":"https://avatars2.githubusercontent.com/u/32716983?v=4","gravatar_id":"","url":"https://api.github.com/users/nikitasakov","html_url":"https://github.com/nikitasakov","followers_url":"https://api.github.com/users/nikitasakov/followers","following_url":"https://api.github.com/users/nikitasakov/following{/other_user}","gists_url":"https://api.github.com/users/nikitasakov/gists{/gist_id}","starred_url":"https://api.github.com/users/nikitasakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikitasakov/subscriptions","organizations_url":"https://api.github.com/users/nikitasakov/orgs","repos_url":"https://api.github.com/users/nikitasakov/repos","events_url":"https://api.github.com/users/nikitasakov/events{/privacy}","received_events_url":"https://api.github.com/users/nikitasakov/received_events","type":"User","site_admin":false},"body":"🤔","created_at":"2018-12-07T17:04:50Z","updated_at":"2018-12-07T17:04:50Z","html_url":"https://github.com/datarockets/loopback-to-do/pull/21#discussion_r239879140","pull_request_url":"https://api.github.com/repos/datarockets/loopback-to-do/pulls/21","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/datarockets/loopback-to-do/pulls/comments/239879140"},"html":{"href":"https://github.com/datarockets/loopback-to-do/pull/21#discussion_r239879140"},"pull_request":{"href":"https://api.github.com/repos/datarockets/loopback-to-do/pulls/21"}},"in_reply_to_id":239845385},"pull_request":{"url":"https://api.github.com/repos/datarockets/loopback-to-do/pulls/21","id":236811524,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2ODExNTI0","html_url":"https://github.com/datarockets/loopback-to-do/pull/21","diff_url":"https://github.com/datarockets/loopback-to-do/pull/21.diff","patch_url":"https://github.com/datarockets/loopback-to-do/pull/21.patch","issue_url":"https://api.github.com/repos/datarockets/loopback-to-do/issues/21","number":21,"state":"closed","locked":false,"title":"Add dredd to the project","user":{"login":"AleksSenkou","id":3635774,"node_id":"MDQ6VXNlcjM2MzU3NzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3635774?v=4","gravatar_id":"","url":"https://api.github.com/users/AleksSenkou","html_url":"https://github.com/AleksSenkou","followers_url":"https://api.github.com/users/AleksSenkou/followers","following_url":"https://api.github.com/users/AleksSenkou/following{/other_user}","gists_url":"https://api.github.com/users/AleksSenkou/gists{/gist_id}","starred_url":"https://api.github.com/users/AleksSenkou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AleksSenkou/subscriptions","organizations_url":"https://api.github.com/users/AleksSenkou/orgs","repos_url":"https://api.github.com/users/AleksSenkou/repos","events_url":"https://api.github.com/users/AleksSenkou/events{/privacy}","received_events_url":"https://api.github.com/users/AleksSenkou/received_events","type":"User","site_admin":false},"body":"Here is [dredd](https://dredd.org/en/latest/) setup to the project, in perspective - it should save our time for writing unit tests for controllers (Endpoints unit testing - passing params and checking results. That's it.)\r\n\r\nDredd takes our `api-docs.apib` documentation and runs tests according to it, so we have tested documentation, which is a very cool situation.\r\n\r\nDuring this PR I've removed unit tests for `cards.spec.js` because dredd does the same based on `api-docs.apib` + added [hooks](https://dredd.org/en/latest/hooks-js-sandbox.html) for cleaning testing db before and after tests","created_at":"2018-12-07T09:58:18Z","updated_at":"2018-12-07T17:04:50Z","closed_at":"2018-12-07T15:04:51Z","merged_at":"2018-12-07T15:04:51Z","merge_commit_sha":"66769fc239e101e29cab1903d4e086e2a6b832a4","assignee":{"login":"AleksSenkou","id":3635774,"node_id":"MDQ6VXNlcjM2MzU3NzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3635774?v=4","gravatar_id":"","url":"https://api.github.com/users/AleksSenkou","html_url":"https://github.com/AleksSenkou","followers_url":"https://api.github.com/users/AleksSenkou/followers","following_url":"https://api.github.com/users/AleksSenkou/following{/other_user}","gists_url":"https://api.github.com/users/AleksSenkou/gists{/gist_id}","starred_url":"https://api.github.com/users/AleksSenkou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AleksSenkou/subscriptions","organizations_url":"https://api.github.com/users/AleksSenkou/orgs","repos_url":"https://api.github.com/users/AleksSenkou/repos","events_url":"https://api.github.com/users/AleksSenkou/events{/privacy}","received_events_url":"https://api.github.com/users/AleksSenkou/received_events","type":"User","site_admin":false},"assignees":[{"login":"AleksSenkou","id":3635774,"node_id":"MDQ6VXNlcjM2MzU3NzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3635774?v=4","gravatar_id":"","url":"https://api.github.com/users/AleksSenkou","html_url":"https://github.com/AleksSenkou","followers_url":"https://api.github.com/users/AleksSenkou/followers","following_url":"https://api.github.com/users/AleksSenkou/following{/other_user}","gists_url":"https://api.github.com/users/AleksSenkou/gists{/gist_id}","starred_url":"https://api.github.com/users/AleksSenkou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AleksSenkou/subscriptions","organizations_url":"https://api.github.com/users/AleksSenkou/orgs","repos_url":"https://api.github.com/users/AleksSenkou/repos","events_url":"https://api.github.com/users/AleksSenkou/events{/privacy}","received_events_url":"https://api.github.com/users/AleksSenkou/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/datarockets/loopback-to-do/pulls/21/commits","review_comments_url":"https://api.github.com/repos/datarockets/loopback-to-do/pulls/21/comments","review_comment_url":"https://api.github.com/repos/datarockets/loopback-to-do/pulls/comments{/number}","comments_url":"https://api.github.com/repos/datarockets/loopback-to-do/issues/21/comments","statuses_url":"https://api.github.com/repos/datarockets/loopback-to-do/statuses/6065bef4229991e1cc8aeed06a14534cf1249cc1","head":{"label":"datarockets:add-dredd-to-the-project","ref":"add-dredd-to-the-project","sha":"6065bef4229991e1cc8aeed06a14534cf1249cc1","user":{"login":"datarockets","id":7014047,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcwMTQwNDc=","avatar_url":"https://avatars3.githubusercontent.com/u/7014047?v=4","gravatar_id":"","url":"https://api.github.com/users/datarockets","html_url":"https://github.com/datarockets","followers_url":"https://api.github.com/users/datarockets/followers","following_url":"https://api.github.com/users/datarockets/following{/other_user}","gists_url":"https://api.github.com/users/datarockets/gists{/gist_id}","starred_url":"https://api.github.com/users/datarockets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datarockets/subscriptions","organizations_url":"https://api.github.com/users/datarockets/orgs","repos_url":"https://api.github.com/users/datarockets/repos","events_url":"https://api.github.com/users/datarockets/events{/privacy}","received_events_url":"https://api.github.com/users/datarockets/received_events","type":"Organization","site_admin":false},"repo":{"id":158548463,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg1NDg0NjM=","name":"loopback-to-do","full_name":"datarockets/loopback-to-do","private":false,"owner":{"login":"datarockets","id":7014047,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcwMTQwNDc=","avatar_url":"https://avatars3.githubusercontent.com/u/7014047?v=4","gravatar_id":"","url":"https://api.github.com/users/datarockets","html_url":"https://github.com/datarockets","followers_url":"https://api.github.com/users/datarockets/followers","following_url":"https://api.github.com/users/datarockets/following{/other_user}","gists_url":"https://api.github.com/users/datarockets/gists{/gist_id}","starred_url":"https://api.github.com/users/datarockets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datarockets/subscriptions","organizations_url":"https://api.github.com/users/datarockets/orgs","repos_url":"https://api.github.com/users/datarockets/repos","events_url":"https://api.github.com/users/datarockets/events{/privacy}","received_events_url":"https://api.github.com/users/datarockets/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/datarockets/loopback-to-do","description":"Try to use node.js express, sequelize frameworks for TO DO list","fork":false,"url":"https://api.github.com/repos/datarockets/loopback-to-do","forks_url":"https://api.github.com/repos/datarockets/loopback-to-do/forks","keys_url":"https://api.github.com/repos/datarockets/loopback-to-do/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datarockets/loopback-to-do/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datarockets/loopback-to-do/teams","hooks_url":"https://api.github.com/repos/datarockets/loopback-to-do/hooks","issue_events_url":"https://api.github.com/repos/datarockets/loopback-to-do/issues/events{/number}","events_url":"https://api.github.com/repos/datarockets/loopback-to-do/events","assignees_url":"https://api.github.com/repos/datarockets/loopback-to-do/assignees{/user}","branches_url":"https://api.github.com/repos/datarockets/loopback-to-do/branches{/branch}","tags_url":"https://api.github.com/repos/datarockets/loopback-to-do/tags","blobs_url":"https://api.github.com/repos/datarockets/loopback-to-do/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datarockets/loopback-to-do/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datarockets/loopback-to-do/git/refs{/sha}","trees_url":"https://api.github.com/repos/datarockets/loopback-to-do/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datarockets/loopback-to-do/statuses/{sha}","languages_url":"https://api.github.com/repos/datarockets/loopback-to-do/languages","stargazers_url":"https://api.github.com/repos/datarockets/loopback-to-do/stargazers","contributors_url":"https://api.github.com/repos/datarockets/loopback-to-do/contributors","subscribers_url":"https://api.github.com/repos/datarockets/loopback-to-do/subscribers","subscription_url":"https://api.github.com/repos/datarockets/loopback-to-do/subscription","commits_url":"https://api.github.com/repos/datarockets/loopback-to-do/commits{/sha}","git_commits_url":"https://api.github.com/repos/datarockets/loopback-to-do/git/commits{/sha}","comments_url":"https://api.github.com/repos/datarockets/loopback-to-do/comments{/number}","issue_comment_url":"https://api.github.com/repos/datarockets/loopback-to-do/issues/comments{/number}","contents_url":"https://api.github.com/repos/datarockets/loopback-to-do/contents/{+path}","compare_url":"https://api.github.com/repos/datarockets/loopback-to-do/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datarockets/loopback-to-do/merges","archive_url":"https://api.github.com/repos/datarockets/loopback-to-do/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datarockets/loopback-to-do/downloads","issues_url":"https://api.github.com/repos/datarockets/loopback-to-do/issues{/number}","pulls_url":"https://api.github.com/repos/datarockets/loopback-to-do/pulls{/number}","milestones_url":"https://api.github.com/repos/datarockets/loopback-to-do/milestones{/number}","notifications_url":"https://api.github.com/repos/datarockets/loopback-to-do/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datarockets/loopback-to-do/labels{/name}","releases_url":"https://api.github.com/repos/datarockets/loopback-to-do/releases{/id}","deployments_url":"https://api.github.com/repos/datarockets/loopback-to-do/deployments","created_at":"2018-11-21T12:59:44Z","updated_at":"2018-12-07T15:04:53Z","pushed_at":"2018-12-07T15:04:53Z","git_url":"git://github.com/datarockets/loopback-to-do.git","ssh_url":"git@github.com:datarockets/loopback-to-do.git","clone_url":"https://github.com/datarockets/loopback-to-do.git","svn_url":"https://github.com/datarockets/loopback-to-do","homepage":"","size":468,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"datarockets:master","ref":"master","sha":"1a5bb5debb00f5346b546bdfb4853a80a8a91aaf","user":{"login":"datarockets","id":7014047,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcwMTQwNDc=","avatar_url":"https://avatars3.githubusercontent.com/u/7014047?v=4","gravatar_id":"","url":"https://api.github.com/users/datarockets","html_url":"https://github.com/datarockets","followers_url":"https://api.github.com/users/datarockets/followers","following_url":"https://api.github.com/users/datarockets/following{/other_user}","gists_url":"https://api.github.com/users/datarockets/gists{/gist_id}","starred_url":"https://api.github.com/users/datarockets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datarockets/subscriptions","organizations_url":"https://api.github.com/users/datarockets/orgs","repos_url":"https://api.github.com/users/datarockets/repos","events_url":"https://api.github.com/users/datarockets/events{/privacy}","received_events_url":"https://api.github.com/users/datarockets/received_events","type":"Organization","site_admin":false},"repo":{"id":158548463,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg1NDg0NjM=","name":"loopback-to-do","full_name":"datarockets/loopback-to-do","private":false,"owner":{"login":"datarockets","id":7014047,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcwMTQwNDc=","avatar_url":"https://avatars3.githubusercontent.com/u/7014047?v=4","gravatar_id":"","url":"https://api.github.com/users/datarockets","html_url":"https://github.com/datarockets","followers_url":"https://api.github.com/users/datarockets/followers","following_url":"https://api.github.com/users/datarockets/following{/other_user}","gists_url":"https://api.github.com/users/datarockets/gists{/gist_id}","starred_url":"https://api.github.com/users/datarockets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datarockets/subscriptions","organizations_url":"https://api.github.com/users/datarockets/orgs","repos_url":"https://api.github.com/users/datarockets/repos","events_url":"https://api.github.com/users/datarockets/events{/privacy}","received_events_url":"https://api.github.com/users/datarockets/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/datarockets/loopback-to-do","description":"Try to use node.js express, sequelize frameworks for TO DO list","fork":false,"url":"https://api.github.com/repos/datarockets/loopback-to-do","forks_url":"https://api.github.com/repos/datarockets/loopback-to-do/forks","keys_url":"https://api.github.com/repos/datarockets/loopback-to-do/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datarockets/loopback-to-do/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datarockets/loopback-to-do/teams","hooks_url":"https://api.github.com/repos/datarockets/loopback-to-do/hooks","issue_events_url":"https://api.github.com/repos/datarockets/loopback-to-do/issues/events{/number}","events_url":"https://api.github.com/repos/datarockets/loopback-to-do/events","assignees_url":"https://api.github.com/repos/datarockets/loopback-to-do/assignees{/user}","branches_url":"https://api.github.com/repos/datarockets/loopback-to-do/branches{/branch}","tags_url":"https://api.github.com/repos/datarockets/loopback-to-do/tags","blobs_url":"https://api.github.com/repos/datarockets/loopback-to-do/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datarockets/loopback-to-do/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datarockets/loopback-to-do/git/refs{/sha}","trees_url":"https://api.github.com/repos/datarockets/loopback-to-do/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datarockets/loopback-to-do/statuses/{sha}","languages_url":"https://api.github.com/repos/datarockets/loopback-to-do/languages","stargazers_url":"https://api.github.com/repos/datarockets/loopback-to-do/stargazers","contributors_url":"https://api.github.com/repos/datarockets/loopback-to-do/contributors","subscribers_url":"https://api.github.com/repos/datarockets/loopback-to-do/subscribers","subscription_url":"https://api.github.com/repos/datarockets/loopback-to-do/subscription","commits_url":"https://api.github.com/repos/datarockets/loopback-to-do/commits{/sha}","git_commits_url":"https://api.github.com/repos/datarockets/loopback-to-do/git/commits{/sha}","comments_url":"https://api.github.com/repos/datarockets/loopback-to-do/comments{/number}","issue_comment_url":"https://api.github.com/repos/datarockets/loopback-to-do/issues/comments{/number}","contents_url":"https://api.github.com/repos/datarockets/loopback-to-do/contents/{+path}","compare_url":"https://api.github.com/repos/datarockets/loopback-to-do/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datarockets/loopback-to-do/merges","archive_url":"https://api.github.com/repos/datarockets/loopback-to-do/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datarockets/loopback-to-do/downloads","issues_url":"https://api.github.com/repos/datarockets/loopback-to-do/issues{/number}","pulls_url":"https://api.github.com/repos/datarockets/loopback-to-do/pulls{/number}","milestones_url":"https://api.github.com/repos/datarockets/loopback-to-do/milestones{/number}","notifications_url":"https://api.github.com/repos/datarockets/loopback-to-do/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datarockets/loopback-to-do/labels{/name}","releases_url":"https://api.github.com/repos/datarockets/loopback-to-do/releases{/id}","deployments_url":"https://api.github.com/repos/datarockets/loopback-to-do/deployments","created_at":"2018-11-21T12:59:44Z","updated_at":"2018-12-07T15:04:53Z","pushed_at":"2018-12-07T15:04:53Z","git_url":"git://github.com/datarockets/loopback-to-do.git","ssh_url":"git@github.com:datarockets/loopback-to-do.git","clone_url":"https://github.com/datarockets/loopback-to-do.git","svn_url":"https://github.com/datarockets/loopback-to-do","homepage":"","size":468,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/datarockets/loopback-to-do/pulls/21"},"html":{"href":"https://github.com/datarockets/loopback-to-do/pull/21"},"issue":{"href":"https://api.github.com/repos/datarockets/loopback-to-do/issues/21"},"comments":{"href":"https://api.github.com/repos/datarockets/loopback-to-do/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/datarockets/loopback-to-do/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/datarockets/loopback-to-do/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/datarockets/loopback-to-do/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/datarockets/loopback-to-do/statuses/6065bef4229991e1cc8aeed06a14534cf1249cc1"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"nikitasakov"}}