{"action":"created","comment":{"url":"https://api.github.com/repos/netguru/bob-the-bot/pulls/comments/225110862","pull_request_review_id":164630102,"id":225110862,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTExMDg2Mg==","diff_hunk":"@@ -0,0 +1,128 @@\n+const sinon = require('sinon');\n+const { expect } = require('chai');\n+const request = require('supertest');\n+\n+const UsersIdMapperService = require('../../src/slack/UsersIdMapper.service');\n+const SlackClientFactory = require('../../src/clients/SlackClientFactory');\n+const client = SlackClientFactory();\n+\n+const errors = require('../../src/slack/slack.errors');\n+\n+const tick = ms => new Promise(resolve => setTimeout(resolve, ms));\n+\n+describe('Slack emails to ids mapper', () => {\n+  let userEmails = ['super@malpka.pl'];\n+  let usersIdMapper = new UsersIdMapperService(userEmails, client);\n+\n+  const responseOk = {\n+    \"ok\": true,","path":"test/slack/users-ids-mapper.spec.js","position":18,"original_position":18,"commit_id":"1afe76c4a6547b609131ffc9ce4d35e05b593601","original_commit_id":"acb8c9e800de3aa77c0485c6d5d687855045c54f","user":{"login":"krzyurb","id":11517908,"node_id":"MDQ6VXNlcjExNTE3OTA4","avatar_url":"https://avatars3.githubusercontent.com/u/11517908?v=4","gravatar_id":"","url":"https://api.github.com/users/krzyurb","html_url":"https://github.com/krzyurb","followers_url":"https://api.github.com/users/krzyurb/followers","following_url":"https://api.github.com/users/krzyurb/following{/other_user}","gists_url":"https://api.github.com/users/krzyurb/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyurb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyurb/subscriptions","organizations_url":"https://api.github.com/users/krzyurb/orgs","repos_url":"https://api.github.com/users/krzyurb/repos","events_url":"https://api.github.com/users/krzyurb/events{/privacy}","received_events_url":"https://api.github.com/users/krzyurb/received_events","type":"User","site_admin":false},"body":"You don't need quotes here - please remove them according to `[eslint] Unnecessarily quoted property 'ok' found. (quote-props)`","created_at":"2018-10-15T10:18:36Z","updated_at":"2018-10-15T10:34:44Z","html_url":"https://github.com/netguru/bob-the-bot/pull/76#discussion_r225110862","pull_request_url":"https://api.github.com/repos/netguru/bob-the-bot/pulls/76","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/netguru/bob-the-bot/pulls/comments/225110862"},"html":{"href":"https://github.com/netguru/bob-the-bot/pull/76#discussion_r225110862"},"pull_request":{"href":"https://api.github.com/repos/netguru/bob-the-bot/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/netguru/bob-the-bot/pulls/76","id":222840427,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyODQwNDI3","html_url":"https://github.com/netguru/bob-the-bot/pull/76","diff_url":"https://github.com/netguru/bob-the-bot/pull/76.diff","patch_url":"https://github.com/netguru/bob-the-bot/pull/76.patch","issue_url":"https://api.github.com/repos/netguru/bob-the-bot/issues/76","number":76,"state":"open","locked":false,"title":"Book 8 users id mapper","user":{"login":"kozikkam","id":36657834,"node_id":"MDQ6VXNlcjM2NjU3ODM0","avatar_url":"https://avatars3.githubusercontent.com/u/36657834?v=4","gravatar_id":"","url":"https://api.github.com/users/kozikkam","html_url":"https://github.com/kozikkam","followers_url":"https://api.github.com/users/kozikkam/followers","following_url":"https://api.github.com/users/kozikkam/following{/other_user}","gists_url":"https://api.github.com/users/kozikkam/gists{/gist_id}","starred_url":"https://api.github.com/users/kozikkam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kozikkam/subscriptions","organizations_url":"https://api.github.com/users/kozikkam/orgs","repos_url":"https://api.github.com/users/kozikkam/repos","events_url":"https://api.github.com/users/kozikkam/events{/privacy}","received_events_url":"https://api.github.com/users/kozikkam/received_events","type":"User","site_admin":false},"body":"Service that will map user emails to Slack IDs. Will be used in service from Task #3 when saving data.","created_at":"2018-10-15T09:35:57Z","updated_at":"2018-10-15T10:34:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e38c8fa9549803aa8af32bd54ec80c16b7e4ca29","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1029631313,"node_id":"MDU6TGFiZWwxMDI5NjMxMzEz","url":"https://api.github.com/repos/netguru/bob-the-bot/labels/ready%20for%20review","name":"ready for review","color":"006b75","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/netguru/bob-the-bot/pulls/76/commits","review_comments_url":"https://api.github.com/repos/netguru/bob-the-bot/pulls/76/comments","review_comment_url":"https://api.github.com/repos/netguru/bob-the-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/netguru/bob-the-bot/issues/76/comments","statuses_url":"https://api.github.com/repos/netguru/bob-the-bot/statuses/1afe76c4a6547b609131ffc9ce4d35e05b593601","head":{"label":"netguru:book-8-Users-Id-Mapper","ref":"book-8-Users-Id-Mapper","sha":"1afe76c4a6547b609131ffc9ce4d35e05b593601","user":{"login":"netguru","id":1146,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1146?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"repo":{"id":141249965,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEyNDk5NjU=","name":"bob-the-bot","full_name":"netguru/bob-the-bot","private":false,"owner":{"login":"netguru","id":1146,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1146?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/netguru/bob-the-bot","description":null,"fork":false,"url":"https://api.github.com/repos/netguru/bob-the-bot","forks_url":"https://api.github.com/repos/netguru/bob-the-bot/forks","keys_url":"https://api.github.com/repos/netguru/bob-the-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru/bob-the-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru/bob-the-bot/teams","hooks_url":"https://api.github.com/repos/netguru/bob-the-bot/hooks","issue_events_url":"https://api.github.com/repos/netguru/bob-the-bot/issues/events{/number}","events_url":"https://api.github.com/repos/netguru/bob-the-bot/events","assignees_url":"https://api.github.com/repos/netguru/bob-the-bot/assignees{/user}","branches_url":"https://api.github.com/repos/netguru/bob-the-bot/branches{/branch}","tags_url":"https://api.github.com/repos/netguru/bob-the-bot/tags","blobs_url":"https://api.github.com/repos/netguru/bob-the-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru/bob-the-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru/bob-the-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru/bob-the-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru/bob-the-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru/bob-the-bot/languages","stargazers_url":"https://api.github.com/repos/netguru/bob-the-bot/stargazers","contributors_url":"https://api.github.com/repos/netguru/bob-the-bot/contributors","subscribers_url":"https://api.github.com/repos/netguru/bob-the-bot/subscribers","subscription_url":"https://api.github.com/repos/netguru/bob-the-bot/subscription","commits_url":"https://api.github.com/repos/netguru/bob-the-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru/bob-the-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru/bob-the-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru/bob-the-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru/bob-the-bot/contents/{+path}","compare_url":"https://api.github.com/repos/netguru/bob-the-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru/bob-the-bot/merges","archive_url":"https://api.github.com/repos/netguru/bob-the-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru/bob-the-bot/downloads","issues_url":"https://api.github.com/repos/netguru/bob-the-bot/issues{/number}","pulls_url":"https://api.github.com/repos/netguru/bob-the-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru/bob-the-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru/bob-the-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru/bob-the-bot/labels{/name}","releases_url":"https://api.github.com/repos/netguru/bob-the-bot/releases{/id}","deployments_url":"https://api.github.com/repos/netguru/bob-the-bot/deployments","created_at":"2018-07-17T07:35:10Z","updated_at":"2018-10-08T11:25:53Z","pushed_at":"2018-10-15T10:10:32Z","git_url":"git://github.com/netguru/bob-the-bot.git","ssh_url":"git@github.com:netguru/bob-the-bot.git","clone_url":"https://github.com/netguru/bob-the-bot.git","svn_url":"https://github.com/netguru/bob-the-bot","homepage":null,"size":432,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"netguru:project/book","ref":"project/book","sha":"9e24232fafcc7d627597fa70c066cf8f829af6c8","user":{"login":"netguru","id":1146,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1146?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"repo":{"id":141249965,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEyNDk5NjU=","name":"bob-the-bot","full_name":"netguru/bob-the-bot","private":false,"owner":{"login":"netguru","id":1146,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1146?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/netguru/bob-the-bot","description":null,"fork":false,"url":"https://api.github.com/repos/netguru/bob-the-bot","forks_url":"https://api.github.com/repos/netguru/bob-the-bot/forks","keys_url":"https://api.github.com/repos/netguru/bob-the-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru/bob-the-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru/bob-the-bot/teams","hooks_url":"https://api.github.com/repos/netguru/bob-the-bot/hooks","issue_events_url":"https://api.github.com/repos/netguru/bob-the-bot/issues/events{/number}","events_url":"https://api.github.com/repos/netguru/bob-the-bot/events","assignees_url":"https://api.github.com/repos/netguru/bob-the-bot/assignees{/user}","branches_url":"https://api.github.com/repos/netguru/bob-the-bot/branches{/branch}","tags_url":"https://api.github.com/repos/netguru/bob-the-bot/tags","blobs_url":"https://api.github.com/repos/netguru/bob-the-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru/bob-the-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru/bob-the-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru/bob-the-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru/bob-the-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru/bob-the-bot/languages","stargazers_url":"https://api.github.com/repos/netguru/bob-the-bot/stargazers","contributors_url":"https://api.github.com/repos/netguru/bob-the-bot/contributors","subscribers_url":"https://api.github.com/repos/netguru/bob-the-bot/subscribers","subscription_url":"https://api.github.com/repos/netguru/bob-the-bot/subscription","commits_url":"https://api.github.com/repos/netguru/bob-the-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru/bob-the-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru/bob-the-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru/bob-the-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru/bob-the-bot/contents/{+path}","compare_url":"https://api.github.com/repos/netguru/bob-the-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru/bob-the-bot/merges","archive_url":"https://api.github.com/repos/netguru/bob-the-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru/bob-the-bot/downloads","issues_url":"https://api.github.com/repos/netguru/bob-the-bot/issues{/number}","pulls_url":"https://api.github.com/repos/netguru/bob-the-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru/bob-the-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru/bob-the-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru/bob-the-bot/labels{/name}","releases_url":"https://api.github.com/repos/netguru/bob-the-bot/releases{/id}","deployments_url":"https://api.github.com/repos/netguru/bob-the-bot/deployments","created_at":"2018-07-17T07:35:10Z","updated_at":"2018-10-08T11:25:53Z","pushed_at":"2018-10-15T10:10:32Z","git_url":"git://github.com/netguru/bob-the-bot.git","ssh_url":"git@github.com:netguru/bob-the-bot.git","clone_url":"https://github.com/netguru/bob-the-bot.git","svn_url":"https://github.com/netguru/bob-the-bot","homepage":null,"size":432,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/netguru/bob-the-bot/pulls/76"},"html":{"href":"https://github.com/netguru/bob-the-bot/pull/76"},"issue":{"href":"https://api.github.com/repos/netguru/bob-the-bot/issues/76"},"comments":{"href":"https://api.github.com/repos/netguru/bob-the-bot/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/netguru/bob-the-bot/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/netguru/bob-the-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/netguru/bob-the-bot/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/netguru/bob-the-bot/statuses/1afe76c4a6547b609131ffc9ce4d35e05b593601"}},"author_association":"NONE"}}
{"actor":{"display_login":"krzyurb"}}