{"action":"created","comment":{"url":"https://api.github.com/repos/smooch/smooch-js/pulls/comments/49224588","id":49224588,"diff_hunk":"@@ -0,0 +1,32 @@\n+import React from 'react';\n+import TestUtils from 'react-addons-test-utils';\n+\n+export function scryRenderedDOMComponentsWithId(tree, id) {\n+    return TestUtils.findAllInRenderedTree(tree, function(inst) {\n+        return TestUtils.isDOMComponent(inst) && inst.getAttribute('id') === id;\n+    });\n+}\n+\n+export function scryRenderedDOMComponentsWithAttribute(tree, attr, value = '') {\n+    return TestUtils.findAllInRenderedTree(tree, function(inst) {\n+        return TestUtils.isDOMComponent(inst) && inst.getAttribute(attr) === value;\n+    });\n+}\n+\n+export function findRenderedDOMComponentsWithId(tree, id) {","path":"test/utils/react.js","position":16,"original_position":16,"commit_id":"064f13f896bda0d3e7e02ca524e46bb2a6747ec2","original_commit_id":"485bb6fe4b648eb8b6a30961d08225779f407fcc","user":{"login":"lemieux","id":781844,"avatar_url":"https://avatars.githubusercontent.com/u/781844?v=3","gravatar_id":"","url":"https://api.github.com/users/lemieux","html_url":"https://github.com/lemieux","followers_url":"https://api.github.com/users/lemieux/followers","following_url":"https://api.github.com/users/lemieux/following{/other_user}","gists_url":"https://api.github.com/users/lemieux/gists{/gist_id}","starred_url":"https://api.github.com/users/lemieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemieux/subscriptions","organizations_url":"https://api.github.com/users/lemieux/orgs","repos_url":"https://api.github.com/users/lemieux/repos","events_url":"https://api.github.com/users/lemieux/events{/privacy}","received_events_url":"https://api.github.com/users/lemieux/received_events","type":"User","site_admin":false},"body":"does it? lol\r\n","created_at":"2016-01-08T19:05:42Z","updated_at":"2016-01-08T19:05:42Z","html_url":"https://github.com/smooch/smooch-js/pull/145#discussion_r49224588","pull_request_url":"https://api.github.com/repos/smooch/smooch-js/pulls/145","_links":{"self":{"href":"https://api.github.com/repos/smooch/smooch-js/pulls/comments/49224588"},"html":{"href":"https://github.com/smooch/smooch-js/pull/145#discussion_r49224588"},"pull_request":{"href":"https://api.github.com/repos/smooch/smooch-js/pulls/145"}}},"pull_request":{"url":"https://api.github.com/repos/smooch/smooch-js/pulls/145","id":54939955,"html_url":"https://github.com/smooch/smooch-js/pull/145","diff_url":"https://github.com/smooch/smooch-js/pull/145.diff","patch_url":"https://github.com/smooch/smooch-js/pull/145.patch","issue_url":"https://api.github.com/repos/smooch/smooch-js/issues/145","number":145,"state":"open","locked":false,"title":"React / Redux + better test coverage","user":{"login":"lemieux","id":781844,"avatar_url":"https://avatars.githubusercontent.com/u/781844?v=3","gravatar_id":"","url":"https://api.github.com/users/lemieux","html_url":"https://github.com/lemieux","followers_url":"https://api.github.com/users/lemieux/followers","following_url":"https://api.github.com/users/lemieux/following{/other_user}","gists_url":"https://api.github.com/users/lemieux/gists{/gist_id}","starred_url":"https://api.github.com/users/lemieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemieux/subscriptions","organizations_url":"https://api.github.com/users/lemieux/orgs","repos_url":"https://api.github.com/users/lemieux/repos","events_url":"https://api.github.com/users/lemieux/events{/privacy}","received_events_url":"https://api.github.com/users/lemieux/received_events","type":"User","site_admin":false},"body":"This is a big chunk of changes to move away from Marionette and move towards React.\r\nThis PR includes a bigger test suite that covers almost everything in the widget.\r\n\r\nIt also leverages https://github.com/lemieux/smooch-core-js to talk with our API.\r\n\r\nHappy reviewing @alavers @jpjoyal @dannytranlx @jugarrit @mspensieri  @Mario54 @spasiu :)","created_at":"2016-01-04T03:04:41Z","updated_at":"2016-01-08T19:05:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29e46eee741dbf0e6a0bbc13d248d5798e7fce05","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/smooch/smooch-js/pulls/145/commits","review_comments_url":"https://api.github.com/repos/smooch/smooch-js/pulls/145/comments","review_comment_url":"https://api.github.com/repos/smooch/smooch-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/smooch/smooch-js/issues/145/comments","statuses_url":"https://api.github.com/repos/smooch/smooch-js/statuses/064f13f896bda0d3e7e02ca524e46bb2a6747ec2","head":{"label":"lemieux:f/reactify","ref":"f/reactify","sha":"064f13f896bda0d3e7e02ca524e46bb2a6747ec2","user":{"login":"lemieux","id":781844,"avatar_url":"https://avatars.githubusercontent.com/u/781844?v=3","gravatar_id":"","url":"https://api.github.com/users/lemieux","html_url":"https://github.com/lemieux","followers_url":"https://api.github.com/users/lemieux/followers","following_url":"https://api.github.com/users/lemieux/following{/other_user}","gists_url":"https://api.github.com/users/lemieux/gists{/gist_id}","starred_url":"https://api.github.com/users/lemieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemieux/subscriptions","organizations_url":"https://api.github.com/users/lemieux/orgs","repos_url":"https://api.github.com/users/lemieux/repos","events_url":"https://api.github.com/users/lemieux/events{/privacy}","received_events_url":"https://api.github.com/users/lemieux/received_events","type":"User","site_admin":false},"repo":{"id":40276615,"name":"supportkit-js","full_name":"lemieux/supportkit-js","owner":{"login":"lemieux","id":781844,"avatar_url":"https://avatars.githubusercontent.com/u/781844?v=3","gravatar_id":"","url":"https://api.github.com/users/lemieux","html_url":"https://github.com/lemieux","followers_url":"https://api.github.com/users/lemieux/followers","following_url":"https://api.github.com/users/lemieux/following{/other_user}","gists_url":"https://api.github.com/users/lemieux/gists{/gist_id}","starred_url":"https://api.github.com/users/lemieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemieux/subscriptions","organizations_url":"https://api.github.com/users/lemieux/orgs","repos_url":"https://api.github.com/users/lemieux/repos","events_url":"https://api.github.com/users/lemieux/events{/privacy}","received_events_url":"https://api.github.com/users/lemieux/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lemieux/supportkit-js","description":"SupportKit adds beautifully simple messaging to your app to keep your users engaged and coming back.","fork":true,"url":"https://api.github.com/repos/lemieux/supportkit-js","forks_url":"https://api.github.com/repos/lemieux/supportkit-js/forks","keys_url":"https://api.github.com/repos/lemieux/supportkit-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lemieux/supportkit-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lemieux/supportkit-js/teams","hooks_url":"https://api.github.com/repos/lemieux/supportkit-js/hooks","issue_events_url":"https://api.github.com/repos/lemieux/supportkit-js/issues/events{/number}","events_url":"https://api.github.com/repos/lemieux/supportkit-js/events","assignees_url":"https://api.github.com/repos/lemieux/supportkit-js/assignees{/user}","branches_url":"https://api.github.com/repos/lemieux/supportkit-js/branches{/branch}","tags_url":"https://api.github.com/repos/lemieux/supportkit-js/tags","blobs_url":"https://api.github.com/repos/lemieux/supportkit-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lemieux/supportkit-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lemieux/supportkit-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/lemieux/supportkit-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lemieux/supportkit-js/statuses/{sha}","languages_url":"https://api.github.com/repos/lemieux/supportkit-js/languages","stargazers_url":"https://api.github.com/repos/lemieux/supportkit-js/stargazers","contributors_url":"https://api.github.com/repos/lemieux/supportkit-js/contributors","subscribers_url":"https://api.github.com/repos/lemieux/supportkit-js/subscribers","subscription_url":"https://api.github.com/repos/lemieux/supportkit-js/subscription","commits_url":"https://api.github.com/repos/lemieux/supportkit-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/lemieux/supportkit-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/lemieux/supportkit-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/lemieux/supportkit-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/lemieux/supportkit-js/contents/{+path}","compare_url":"https://api.github.com/repos/lemieux/supportkit-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lemieux/supportkit-js/merges","archive_url":"https://api.github.com/repos/lemieux/supportkit-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lemieux/supportkit-js/downloads","issues_url":"https://api.github.com/repos/lemieux/supportkit-js/issues{/number}","pulls_url":"https://api.github.com/repos/lemieux/supportkit-js/pulls{/number}","milestones_url":"https://api.github.com/repos/lemieux/supportkit-js/milestones{/number}","notifications_url":"https://api.github.com/repos/lemieux/supportkit-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lemieux/supportkit-js/labels{/name}","releases_url":"https://api.github.com/repos/lemieux/supportkit-js/releases{/id}","created_at":"2015-08-06T01:03:05Z","updated_at":"2015-08-06T01:03:06Z","pushed_at":"2016-01-08T18:55:01Z","git_url":"git://github.com/lemieux/supportkit-js.git","ssh_url":"git@github.com:lemieux/supportkit-js.git","clone_url":"https://github.com/lemieux/supportkit-js.git","svn_url":"https://github.com/lemieux/supportkit-js","homepage":"http://supportkit.io","size":5912,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"integration"}},"base":{"label":"smooch:integration","ref":"integration","sha":"1081734ce00833582b5f71058dab4028b65ee24f","user":{"login":"smooch","id":14301989,"avatar_url":"https://avatars.githubusercontent.com/u/14301989?v=3","gravatar_id":"","url":"https://api.github.com/users/smooch","html_url":"https://github.com/smooch","followers_url":"https://api.github.com/users/smooch/followers","following_url":"https://api.github.com/users/smooch/following{/other_user}","gists_url":"https://api.github.com/users/smooch/gists{/gist_id}","starred_url":"https://api.github.com/users/smooch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smooch/subscriptions","organizations_url":"https://api.github.com/users/smooch/orgs","repos_url":"https://api.github.com/users/smooch/repos","events_url":"https://api.github.com/users/smooch/events{/privacy}","received_events_url":"https://api.github.com/users/smooch/received_events","type":"Organization","site_admin":false},"repo":{"id":36675403,"name":"smooch-js","full_name":"smooch/smooch-js","owner":{"login":"smooch","id":14301989,"avatar_url":"https://avatars.githubusercontent.com/u/14301989?v=3","gravatar_id":"","url":"https://api.github.com/users/smooch","html_url":"https://github.com/smooch","followers_url":"https://api.github.com/users/smooch/followers","following_url":"https://api.github.com/users/smooch/following{/other_user}","gists_url":"https://api.github.com/users/smooch/gists{/gist_id}","starred_url":"https://api.github.com/users/smooch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smooch/subscriptions","organizations_url":"https://api.github.com/users/smooch/orgs","repos_url":"https://api.github.com/users/smooch/repos","events_url":"https://api.github.com/users/smooch/events{/privacy}","received_events_url":"https://api.github.com/users/smooch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smooch/smooch-js","description":"Smooch lets you have rich conversations with your users, right in your app or on your website.","fork":false,"url":"https://api.github.com/repos/smooch/smooch-js","forks_url":"https://api.github.com/repos/smooch/smooch-js/forks","keys_url":"https://api.github.com/repos/smooch/smooch-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smooch/smooch-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smooch/smooch-js/teams","hooks_url":"https://api.github.com/repos/smooch/smooch-js/hooks","issue_events_url":"https://api.github.com/repos/smooch/smooch-js/issues/events{/number}","events_url":"https://api.github.com/repos/smooch/smooch-js/events","assignees_url":"https://api.github.com/repos/smooch/smooch-js/assignees{/user}","branches_url":"https://api.github.com/repos/smooch/smooch-js/branches{/branch}","tags_url":"https://api.github.com/repos/smooch/smooch-js/tags","blobs_url":"https://api.github.com/repos/smooch/smooch-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smooch/smooch-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smooch/smooch-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/smooch/smooch-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smooch/smooch-js/statuses/{sha}","languages_url":"https://api.github.com/repos/smooch/smooch-js/languages","stargazers_url":"https://api.github.com/repos/smooch/smooch-js/stargazers","contributors_url":"https://api.github.com/repos/smooch/smooch-js/contributors","subscribers_url":"https://api.github.com/repos/smooch/smooch-js/subscribers","subscription_url":"https://api.github.com/repos/smooch/smooch-js/subscription","commits_url":"https://api.github.com/repos/smooch/smooch-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/smooch/smooch-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/smooch/smooch-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/smooch/smooch-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/smooch/smooch-js/contents/{+path}","compare_url":"https://api.github.com/repos/smooch/smooch-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smooch/smooch-js/merges","archive_url":"https://api.github.com/repos/smooch/smooch-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smooch/smooch-js/downloads","issues_url":"https://api.github.com/repos/smooch/smooch-js/issues{/number}","pulls_url":"https://api.github.com/repos/smooch/smooch-js/pulls{/number}","milestones_url":"https://api.github.com/repos/smooch/smooch-js/milestones{/number}","notifications_url":"https://api.github.com/repos/smooch/smooch-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smooch/smooch-js/labels{/name}","releases_url":"https://api.github.com/repos/smooch/smooch-js/releases{/id}","created_at":"2015-06-01T17:03:32Z","updated_at":"2016-01-08T10:58:18Z","pushed_at":"2016-01-08T18:55:02Z","git_url":"git://github.com/smooch/smooch-js.git","ssh_url":"git@github.com:smooch/smooch-js.git","clone_url":"https://github.com/smooch/smooch-js.git","svn_url":"https://github.com/smooch/smooch-js","homepage":"https://smooch.io","size":9744,"stargazers_count":28,"watchers_count":28,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":3,"forks":12,"open_issues":3,"watchers":28,"default_branch":"integration"}},"_links":{"self":{"href":"https://api.github.com/repos/smooch/smooch-js/pulls/145"},"html":{"href":"https://github.com/smooch/smooch-js/pull/145"},"issue":{"href":"https://api.github.com/repos/smooch/smooch-js/issues/145"},"comments":{"href":"https://api.github.com/repos/smooch/smooch-js/issues/145/comments"},"review_comments":{"href":"https://api.github.com/repos/smooch/smooch-js/pulls/145/comments"},"review_comment":{"href":"https://api.github.com/repos/smooch/smooch-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/smooch/smooch-js/pulls/145/commits"},"statuses":{"href":"https://api.github.com/repos/smooch/smooch-js/statuses/064f13f896bda0d3e7e02ca524e46bb2a6747ec2"}}}}