{"action":"created","comment":{"url":"https://api.github.com/repos/devtools-html/debugger.html/pulls/comments/185785332","pull_request_review_id":117243982,"id":185785332,"diff_hunk":"@@ -12,6 +12,22 @@ const { getSelectedSource, getSourceTabs } = selectors;\n \n import { sourceThreadClient as threadClient } from \"./helpers/threadClient.js\";\n \n+import { addTab, moveTab } from \"../sources/tabs\";\n+\n+test(\"addTab returns expected action\", () => {\n+  const source = \"testSource\";\n+  const tabIndex = \"testTabIndex\";\n+  const output = addTab(source, tabIndex);\n+  expect(output).toEqual({ type: \"ADD_TAB\", source, tabIndex });","path":"src/actions/tests/tabs.spec.js","position":10,"original_position":10,"commit_id":"2738353ac1e449230b98df43ac3d84e1ee9ca986","original_commit_id":"2738353ac1e449230b98df43ac3d84e1ee9ca986","user":{"login":"lukaszsobek","id":23530054,"avatar_url":"https://avatars0.githubusercontent.com/u/23530054?v=4","gravatar_id":"","url":"https://api.github.com/users/lukaszsobek","html_url":"https://github.com/lukaszsobek","followers_url":"https://api.github.com/users/lukaszsobek/followers","following_url":"https://api.github.com/users/lukaszsobek/following{/other_user}","gists_url":"https://api.github.com/users/lukaszsobek/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaszsobek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaszsobek/subscriptions","organizations_url":"https://api.github.com/users/lukaszsobek/orgs","repos_url":"https://api.github.com/users/lukaszsobek/repos","events_url":"https://api.github.com/users/lukaszsobek/events{/privacy}","received_events_url":"https://api.github.com/users/lukaszsobek/received_events","type":"User","site_admin":false},"body":"I'd say that having the tab added is an integration test of action and reducer. We still have to know where the error occured and that information seems easier to obtain from  two unit tests where we know where the fault is instead of having an integration tests where we would still have to hunt down the bug.","created_at":"2018-05-03T12:49:00Z","updated_at":"2018-05-03T12:49:00Z","html_url":"https://github.com/devtools-html/debugger.html/pull/6206#discussion_r185785332","pull_request_url":"https://api.github.com/repos/devtools-html/debugger.html/pulls/6206","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/devtools-html/debugger.html/pulls/comments/185785332"},"html":{"href":"https://github.com/devtools-html/debugger.html/pull/6206#discussion_r185785332"},"pull_request":{"href":"https://api.github.com/repos/devtools-html/debugger.html/pulls/6206"}},"in_reply_to_id":185743023},"pull_request":{"url":"https://api.github.com/repos/devtools-html/debugger.html/pulls/6206","id":185635772,"html_url":"https://github.com/devtools-html/debugger.html/pull/6206","diff_url":"https://github.com/devtools-html/debugger.html/pull/6206.diff","patch_url":"https://github.com/devtools-html/debugger.html/pull/6206.patch","issue_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/6206","number":6206,"state":"open","locked":false,"title":"Adds addTab and moveTab tests","user":{"login":"lukaszsobek","id":23530054,"avatar_url":"https://avatars0.githubusercontent.com/u/23530054?v=4","gravatar_id":"","url":"https://api.github.com/users/lukaszsobek","html_url":"https://github.com/lukaszsobek","followers_url":"https://api.github.com/users/lukaszsobek/followers","following_url":"https://api.github.com/users/lukaszsobek/following{/other_user}","gists_url":"https://api.github.com/users/lukaszsobek/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaszsobek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaszsobek/subscriptions","organizations_url":"https://api.github.com/users/lukaszsobek/orgs","repos_url":"https://api.github.com/users/lukaszsobek/repos","events_url":"https://api.github.com/users/lukaszsobek/events{/privacy}","received_events_url":"https://api.github.com/users/lukaszsobek/received_events","type":"User","site_admin":false},"body":"Adds missing tabs tests","created_at":"2018-05-03T07:32:30Z","updated_at":"2018-05-03T12:49:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c97421ce314e0247973fbd11a24d01e2943b7a78","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/devtools-html/debugger.html/pulls/6206/commits","review_comments_url":"https://api.github.com/repos/devtools-html/debugger.html/pulls/6206/comments","review_comment_url":"https://api.github.com/repos/devtools-html/debugger.html/pulls/comments{/number}","comments_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/6206/comments","statuses_url":"https://api.github.com/repos/devtools-html/debugger.html/statuses/2738353ac1e449230b98df43ac3d84e1ee9ca986","head":{"label":"lukaszsobek:adds-tabs-tests","ref":"adds-tabs-tests","sha":"2738353ac1e449230b98df43ac3d84e1ee9ca986","user":{"login":"lukaszsobek","id":23530054,"avatar_url":"https://avatars0.githubusercontent.com/u/23530054?v=4","gravatar_id":"","url":"https://api.github.com/users/lukaszsobek","html_url":"https://github.com/lukaszsobek","followers_url":"https://api.github.com/users/lukaszsobek/followers","following_url":"https://api.github.com/users/lukaszsobek/following{/other_user}","gists_url":"https://api.github.com/users/lukaszsobek/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaszsobek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaszsobek/subscriptions","organizations_url":"https://api.github.com/users/lukaszsobek/orgs","repos_url":"https://api.github.com/users/lukaszsobek/repos","events_url":"https://api.github.com/users/lukaszsobek/events{/privacy}","received_events_url":"https://api.github.com/users/lukaszsobek/received_events","type":"User","site_admin":false},"repo":{"id":106252317,"name":"debugger.html","full_name":"lukaszsobek/debugger.html","owner":{"login":"lukaszsobek","id":23530054,"avatar_url":"https://avatars0.githubusercontent.com/u/23530054?v=4","gravatar_id":"","url":"https://api.github.com/users/lukaszsobek","html_url":"https://github.com/lukaszsobek","followers_url":"https://api.github.com/users/lukaszsobek/followers","following_url":"https://api.github.com/users/lukaszsobek/following{/other_user}","gists_url":"https://api.github.com/users/lukaszsobek/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaszsobek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaszsobek/subscriptions","organizations_url":"https://api.github.com/users/lukaszsobek/orgs","repos_url":"https://api.github.com/users/lukaszsobek/repos","events_url":"https://api.github.com/users/lukaszsobek/events{/privacy}","received_events_url":"https://api.github.com/users/lukaszsobek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukaszsobek/debugger.html","description":"The Firefox debugger that works anywhere  :boom:","fork":true,"url":"https://api.github.com/repos/lukaszsobek/debugger.html","forks_url":"https://api.github.com/repos/lukaszsobek/debugger.html/forks","keys_url":"https://api.github.com/repos/lukaszsobek/debugger.html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukaszsobek/debugger.html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukaszsobek/debugger.html/teams","hooks_url":"https://api.github.com/repos/lukaszsobek/debugger.html/hooks","issue_events_url":"https://api.github.com/repos/lukaszsobek/debugger.html/issues/events{/number}","events_url":"https://api.github.com/repos/lukaszsobek/debugger.html/events","assignees_url":"https://api.github.com/repos/lukaszsobek/debugger.html/assignees{/user}","branches_url":"https://api.github.com/repos/lukaszsobek/debugger.html/branches{/branch}","tags_url":"https://api.github.com/repos/lukaszsobek/debugger.html/tags","blobs_url":"https://api.github.com/repos/lukaszsobek/debugger.html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukaszsobek/debugger.html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukaszsobek/debugger.html/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukaszsobek/debugger.html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukaszsobek/debugger.html/statuses/{sha}","languages_url":"https://api.github.com/repos/lukaszsobek/debugger.html/languages","stargazers_url":"https://api.github.com/repos/lukaszsobek/debugger.html/stargazers","contributors_url":"https://api.github.com/repos/lukaszsobek/debugger.html/contributors","subscribers_url":"https://api.github.com/repos/lukaszsobek/debugger.html/subscribers","subscription_url":"https://api.github.com/repos/lukaszsobek/debugger.html/subscription","commits_url":"https://api.github.com/repos/lukaszsobek/debugger.html/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukaszsobek/debugger.html/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukaszsobek/debugger.html/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukaszsobek/debugger.html/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukaszsobek/debugger.html/contents/{+path}","compare_url":"https://api.github.com/repos/lukaszsobek/debugger.html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukaszsobek/debugger.html/merges","archive_url":"https://api.github.com/repos/lukaszsobek/debugger.html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukaszsobek/debugger.html/downloads","issues_url":"https://api.github.com/repos/lukaszsobek/debugger.html/issues{/number}","pulls_url":"https://api.github.com/repos/lukaszsobek/debugger.html/pulls{/number}","milestones_url":"https://api.github.com/repos/lukaszsobek/debugger.html/milestones{/number}","notifications_url":"https://api.github.com/repos/lukaszsobek/debugger.html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukaszsobek/debugger.html/labels{/name}","releases_url":"https://api.github.com/repos/lukaszsobek/debugger.html/releases{/id}","deployments_url":"https://api.github.com/repos/lukaszsobek/debugger.html/deployments","created_at":"2017-10-09T07:46:21Z","updated_at":"2018-03-22T09:12:38Z","pushed_at":"2018-05-03T07:32:01Z","git_url":"git://github.com/lukaszsobek/debugger.html.git","ssh_url":"git@github.com:lukaszsobek/debugger.html.git","clone_url":"https://github.com/lukaszsobek/debugger.html.git","svn_url":"https://github.com/lukaszsobek/debugger.html","homepage":"https://devtools-html.github.io/debugger.html/","size":20829,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"devtools-html:master","ref":"master","sha":"93fee34e252697c74797e7c03d53ede989c9d95e","user":{"login":"devtools-html","id":19979421,"avatar_url":"https://avatars2.githubusercontent.com/u/19979421?v=4","gravatar_id":"","url":"https://api.github.com/users/devtools-html","html_url":"https://github.com/devtools-html","followers_url":"https://api.github.com/users/devtools-html/followers","following_url":"https://api.github.com/users/devtools-html/following{/other_user}","gists_url":"https://api.github.com/users/devtools-html/gists{/gist_id}","starred_url":"https://api.github.com/users/devtools-html/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devtools-html/subscriptions","organizations_url":"https://api.github.com/users/devtools-html/orgs","repos_url":"https://api.github.com/users/devtools-html/repos","events_url":"https://api.github.com/users/devtools-html/events{/privacy}","received_events_url":"https://api.github.com/users/devtools-html/received_events","type":"Organization","site_admin":false},"repo":{"id":54585418,"name":"debugger.html","full_name":"devtools-html/debugger.html","owner":{"login":"devtools-html","id":19979421,"avatar_url":"https://avatars2.githubusercontent.com/u/19979421?v=4","gravatar_id":"","url":"https://api.github.com/users/devtools-html","html_url":"https://github.com/devtools-html","followers_url":"https://api.github.com/users/devtools-html/followers","following_url":"https://api.github.com/users/devtools-html/following{/other_user}","gists_url":"https://api.github.com/users/devtools-html/gists{/gist_id}","starred_url":"https://api.github.com/users/devtools-html/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devtools-html/subscriptions","organizations_url":"https://api.github.com/users/devtools-html/orgs","repos_url":"https://api.github.com/users/devtools-html/repos","events_url":"https://api.github.com/users/devtools-html/events{/privacy}","received_events_url":"https://api.github.com/users/devtools-html/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/devtools-html/debugger.html","description":"The Firefox debugger that works anywhere  :boom:","fork":false,"url":"https://api.github.com/repos/devtools-html/debugger.html","forks_url":"https://api.github.com/repos/devtools-html/debugger.html/forks","keys_url":"https://api.github.com/repos/devtools-html/debugger.html/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devtools-html/debugger.html/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devtools-html/debugger.html/teams","hooks_url":"https://api.github.com/repos/devtools-html/debugger.html/hooks","issue_events_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/events{/number}","events_url":"https://api.github.com/repos/devtools-html/debugger.html/events","assignees_url":"https://api.github.com/repos/devtools-html/debugger.html/assignees{/user}","branches_url":"https://api.github.com/repos/devtools-html/debugger.html/branches{/branch}","tags_url":"https://api.github.com/repos/devtools-html/debugger.html/tags","blobs_url":"https://api.github.com/repos/devtools-html/debugger.html/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devtools-html/debugger.html/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devtools-html/debugger.html/git/refs{/sha}","trees_url":"https://api.github.com/repos/devtools-html/debugger.html/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devtools-html/debugger.html/statuses/{sha}","languages_url":"https://api.github.com/repos/devtools-html/debugger.html/languages","stargazers_url":"https://api.github.com/repos/devtools-html/debugger.html/stargazers","contributors_url":"https://api.github.com/repos/devtools-html/debugger.html/contributors","subscribers_url":"https://api.github.com/repos/devtools-html/debugger.html/subscribers","subscription_url":"https://api.github.com/repos/devtools-html/debugger.html/subscription","commits_url":"https://api.github.com/repos/devtools-html/debugger.html/commits{/sha}","git_commits_url":"https://api.github.com/repos/devtools-html/debugger.html/git/commits{/sha}","comments_url":"https://api.github.com/repos/devtools-html/debugger.html/comments{/number}","issue_comment_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/comments{/number}","contents_url":"https://api.github.com/repos/devtools-html/debugger.html/contents/{+path}","compare_url":"https://api.github.com/repos/devtools-html/debugger.html/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devtools-html/debugger.html/merges","archive_url":"https://api.github.com/repos/devtools-html/debugger.html/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devtools-html/debugger.html/downloads","issues_url":"https://api.github.com/repos/devtools-html/debugger.html/issues{/number}","pulls_url":"https://api.github.com/repos/devtools-html/debugger.html/pulls{/number}","milestones_url":"https://api.github.com/repos/devtools-html/debugger.html/milestones{/number}","notifications_url":"https://api.github.com/repos/devtools-html/debugger.html/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devtools-html/debugger.html/labels{/name}","releases_url":"https://api.github.com/repos/devtools-html/debugger.html/releases{/id}","deployments_url":"https://api.github.com/repos/devtools-html/debugger.html/deployments","created_at":"2016-03-23T18:55:36Z","updated_at":"2018-05-03T00:49:47Z","pushed_at":"2018-05-03T10:54:44Z","git_url":"git://github.com/devtools-html/debugger.html.git","ssh_url":"git@github.com:devtools-html/debugger.html.git","clone_url":"https://github.com/devtools-html/debugger.html.git","svn_url":"https://github.com/devtools-html/debugger.html","homepage":"https://devtools-html.github.io/debugger.html/","size":22965,"stargazers_count":3730,"watchers_count":3730,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":624,"mirror_url":null,"archived":false,"open_issues_count":233,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":624,"open_issues":233,"watchers":3730,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/devtools-html/debugger.html/pulls/6206"},"html":{"href":"https://github.com/devtools-html/debugger.html/pull/6206"},"issue":{"href":"https://api.github.com/repos/devtools-html/debugger.html/issues/6206"},"comments":{"href":"https://api.github.com/repos/devtools-html/debugger.html/issues/6206/comments"},"review_comments":{"href":"https://api.github.com/repos/devtools-html/debugger.html/pulls/6206/comments"},"review_comment":{"href":"https://api.github.com/repos/devtools-html/debugger.html/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/devtools-html/debugger.html/pulls/6206/commits"},"statuses":{"href":"https://api.github.com/repos/devtools-html/debugger.html/statuses/2738353ac1e449230b98df43ac3d84e1ee9ca986"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"lukaszsobek"}}