{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/activity-stream/pulls/comments/114686337","pull_request_review_id":36171555,"id":114686337,"diff_hunk":"@@ -0,0 +1,56 @@\n+const React = require(\"react\");\n+const {shallow} = require(\"enzyme\");\n+const {_unconnected: TopSites, TopSite} = require(\"content-src/components/TopSites/TopSites\");\n+\n+const DEFAULT_PROPS = {\n+  TopSites: {rows: []},\n+  dispatch() {}\n+};\n+\n+describe(\"<TopSites>\", () => {\n+  it(\"should render a TopSites element\", () => {\n+    const el = shallow(<TopSites {...DEFAULT_PROPS} />);\n+    assert.ok(el);","path":"system-addon/test/unit/content-src/components/TopSites.test.js","position":13,"original_position":13,"commit_id":"92c1ca0da74b678b91e8d89537c3e438f8bfe3e9","original_commit_id":"92c1ca0da74b678b91e8d89537c3e438f8bfe3e9","user":{"login":"dmose","id":425657,"avatar_url":"https://avatars1.githubusercontent.com/u/425657?v=3","gravatar_id":"","url":"https://api.github.com/users/dmose","html_url":"https://github.com/dmose","followers_url":"https://api.github.com/users/dmose/followers","following_url":"https://api.github.com/users/dmose/following{/other_user}","gists_url":"https://api.github.com/users/dmose/gists{/gist_id}","starred_url":"https://api.github.com/users/dmose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmose/subscriptions","organizations_url":"https://api.github.com/users/dmose/orgs","repos_url":"https://api.github.com/users/dmose/repos","events_url":"https://api.github.com/users/dmose/events{/privacy}","received_events_url":"https://api.github.com/users/dmose/received_events","type":"User","site_admin":false},"body":"Is just asserting that the wrapper exists a strong enough assertion?  Maybe assert on wrapper.name() or wrapper.hasClass(\"...\")?","created_at":"2017-05-04T01:11:21Z","updated_at":"2017-05-04T01:32:26Z","html_url":"https://github.com/mozilla/activity-stream/pull/2532#discussion_r114686337","pull_request_url":"https://api.github.com/repos/mozilla/activity-stream/pulls/2532","_links":{"self":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/comments/114686337"},"html":{"href":"https://github.com/mozilla/activity-stream/pull/2532#discussion_r114686337"},"pull_request":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/2532"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/activity-stream/pulls/2532","id":118572699,"html_url":"https://github.com/mozilla/activity-stream/pull/2532","diff_url":"https://github.com/mozilla/activity-stream/pull/2532.diff","patch_url":"https://github.com/mozilla/activity-stream/pull/2532.patch","issue_url":"https://api.github.com/repos/mozilla/activity-stream/issues/2532","number":2532,"state":"open","locked":false,"title":"Port short url code and add tests for react components in system add-on","user":{"login":"k88hudson","id":1455535,"avatar_url":"https://avatars0.githubusercontent.com/u/1455535?v=3","gravatar_id":"","url":"https://api.github.com/users/k88hudson","html_url":"https://github.com/k88hudson","followers_url":"https://api.github.com/users/k88hudson/followers","following_url":"https://api.github.com/users/k88hudson/following{/other_user}","gists_url":"https://api.github.com/users/k88hudson/gists{/gist_id}","starred_url":"https://api.github.com/users/k88hudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k88hudson/subscriptions","organizations_url":"https://api.github.com/users/k88hudson/orgs","repos_url":"https://api.github.com/users/k88hudson/repos","events_url":"https://api.github.com/users/k88hudson/events{/privacy}","received_events_url":"https://api.github.com/users/k88hudson/received_events","type":"User","site_admin":false},"body":"This patch ports the code for generating short urls (e.g. `https://foo.com` => `foo`) from the test pilot add-on, which is possible now that we are using our own query that returns `eTLD`. \r\n\r\nI also ported relevant tests for the Search/TopSites components and added support for React/Enzyme in our karma config while I was there.","created_at":"2017-05-02T14:50:31Z","updated_at":"2017-05-04T01:32:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abda4c0645e3d4396caaa9f49a42ce581218be3a","assignee":{"login":"dmose","id":425657,"avatar_url":"https://avatars1.githubusercontent.com/u/425657?v=3","gravatar_id":"","url":"https://api.github.com/users/dmose","html_url":"https://github.com/dmose","followers_url":"https://api.github.com/users/dmose/followers","following_url":"https://api.github.com/users/dmose/following{/other_user}","gists_url":"https://api.github.com/users/dmose/gists{/gist_id}","starred_url":"https://api.github.com/users/dmose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmose/subscriptions","organizations_url":"https://api.github.com/users/dmose/orgs","repos_url":"https://api.github.com/users/dmose/repos","events_url":"https://api.github.com/users/dmose/events{/privacy}","received_events_url":"https://api.github.com/users/dmose/received_events","type":"User","site_admin":false},"assignees":[{"login":"dmose","id":425657,"avatar_url":"https://avatars1.githubusercontent.com/u/425657?v=3","gravatar_id":"","url":"https://api.github.com/users/dmose","html_url":"https://github.com/dmose","followers_url":"https://api.github.com/users/dmose/followers","following_url":"https://api.github.com/users/dmose/following{/other_user}","gists_url":"https://api.github.com/users/dmose/gists{/gist_id}","starred_url":"https://api.github.com/users/dmose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmose/subscriptions","organizations_url":"https://api.github.com/users/dmose/orgs","repos_url":"https://api.github.com/users/dmose/repos","events_url":"https://api.github.com/users/dmose/events{/privacy}","received_events_url":"https://api.github.com/users/dmose/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/activity-stream/pulls/2532/commits","review_comments_url":"https://api.github.com/repos/mozilla/activity-stream/pulls/2532/comments","review_comment_url":"https://api.github.com/repos/mozilla/activity-stream/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/activity-stream/issues/2532/comments","statuses_url":"https://api.github.com/repos/mozilla/activity-stream/statuses/92c1ca0da74b678b91e8d89537c3e438f8bfe3e9","head":{"label":"k88hudson:gh2531","ref":"gh2531","sha":"92c1ca0da74b678b91e8d89537c3e438f8bfe3e9","user":{"login":"k88hudson","id":1455535,"avatar_url":"https://avatars0.githubusercontent.com/u/1455535?v=3","gravatar_id":"","url":"https://api.github.com/users/k88hudson","html_url":"https://github.com/k88hudson","followers_url":"https://api.github.com/users/k88hudson/followers","following_url":"https://api.github.com/users/k88hudson/following{/other_user}","gists_url":"https://api.github.com/users/k88hudson/gists{/gist_id}","starred_url":"https://api.github.com/users/k88hudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k88hudson/subscriptions","organizations_url":"https://api.github.com/users/k88hudson/orgs","repos_url":"https://api.github.com/users/k88hudson/repos","events_url":"https://api.github.com/users/k88hudson/events{/privacy}","received_events_url":"https://api.github.com/users/k88hudson/received_events","type":"User","site_admin":false},"repo":{"id":52153556,"name":"activity-stream","full_name":"k88hudson/activity-stream","owner":{"login":"k88hudson","id":1455535,"avatar_url":"https://avatars0.githubusercontent.com/u/1455535?v=3","gravatar_id":"","url":"https://api.github.com/users/k88hudson","html_url":"https://github.com/k88hudson","followers_url":"https://api.github.com/users/k88hudson/followers","following_url":"https://api.github.com/users/k88hudson/following{/other_user}","gists_url":"https://api.github.com/users/k88hudson/gists{/gist_id}","starred_url":"https://api.github.com/users/k88hudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k88hudson/subscriptions","organizations_url":"https://api.github.com/users/k88hudson/orgs","repos_url":"https://api.github.com/users/k88hudson/repos","events_url":"https://api.github.com/users/k88hudson/events{/privacy}","received_events_url":"https://api.github.com/users/k88hudson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/k88hudson/activity-stream","description":" MVP prototype add-on for activity streams","fork":true,"url":"https://api.github.com/repos/k88hudson/activity-stream","forks_url":"https://api.github.com/repos/k88hudson/activity-stream/forks","keys_url":"https://api.github.com/repos/k88hudson/activity-stream/keys{/key_id}","collaborators_url":"https://api.github.com/repos/k88hudson/activity-stream/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/k88hudson/activity-stream/teams","hooks_url":"https://api.github.com/repos/k88hudson/activity-stream/hooks","issue_events_url":"https://api.github.com/repos/k88hudson/activity-stream/issues/events{/number}","events_url":"https://api.github.com/repos/k88hudson/activity-stream/events","assignees_url":"https://api.github.com/repos/k88hudson/activity-stream/assignees{/user}","branches_url":"https://api.github.com/repos/k88hudson/activity-stream/branches{/branch}","tags_url":"https://api.github.com/repos/k88hudson/activity-stream/tags","blobs_url":"https://api.github.com/repos/k88hudson/activity-stream/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/k88hudson/activity-stream/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/k88hudson/activity-stream/git/refs{/sha}","trees_url":"https://api.github.com/repos/k88hudson/activity-stream/git/trees{/sha}","statuses_url":"https://api.github.com/repos/k88hudson/activity-stream/statuses/{sha}","languages_url":"https://api.github.com/repos/k88hudson/activity-stream/languages","stargazers_url":"https://api.github.com/repos/k88hudson/activity-stream/stargazers","contributors_url":"https://api.github.com/repos/k88hudson/activity-stream/contributors","subscribers_url":"https://api.github.com/repos/k88hudson/activity-stream/subscribers","subscription_url":"https://api.github.com/repos/k88hudson/activity-stream/subscription","commits_url":"https://api.github.com/repos/k88hudson/activity-stream/commits{/sha}","git_commits_url":"https://api.github.com/repos/k88hudson/activity-stream/git/commits{/sha}","comments_url":"https://api.github.com/repos/k88hudson/activity-stream/comments{/number}","issue_comment_url":"https://api.github.com/repos/k88hudson/activity-stream/issues/comments{/number}","contents_url":"https://api.github.com/repos/k88hudson/activity-stream/contents/{+path}","compare_url":"https://api.github.com/repos/k88hudson/activity-stream/compare/{base}...{head}","merges_url":"https://api.github.com/repos/k88hudson/activity-stream/merges","archive_url":"https://api.github.com/repos/k88hudson/activity-stream/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/k88hudson/activity-stream/downloads","issues_url":"https://api.github.com/repos/k88hudson/activity-stream/issues{/number}","pulls_url":"https://api.github.com/repos/k88hudson/activity-stream/pulls{/number}","milestones_url":"https://api.github.com/repos/k88hudson/activity-stream/milestones{/number}","notifications_url":"https://api.github.com/repos/k88hudson/activity-stream/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/k88hudson/activity-stream/labels{/name}","releases_url":"https://api.github.com/repos/k88hudson/activity-stream/releases{/id}","deployments_url":"https://api.github.com/repos/k88hudson/activity-stream/deployments","created_at":"2016-02-20T13:02:48Z","updated_at":"2016-05-10T16:02:20Z","pushed_at":"2017-05-02T16:08:38Z","git_url":"git://github.com/k88hudson/activity-stream.git","ssh_url":"git@github.com:k88hudson/activity-stream.git","clone_url":"https://github.com/k88hudson/activity-stream.git","svn_url":"https://github.com/k88hudson/activity-stream","homepage":"","size":4200,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"bbabf3ceaa3978bbf1cfc5eacc2c78014e43ec88","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars1.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":50695589,"name":"activity-stream","full_name":"mozilla/activity-stream","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars1.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/activity-stream","description":" MVP prototype add-on for activity streams","fork":false,"url":"https://api.github.com/repos/mozilla/activity-stream","forks_url":"https://api.github.com/repos/mozilla/activity-stream/forks","keys_url":"https://api.github.com/repos/mozilla/activity-stream/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/activity-stream/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/activity-stream/teams","hooks_url":"https://api.github.com/repos/mozilla/activity-stream/hooks","issue_events_url":"https://api.github.com/repos/mozilla/activity-stream/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/activity-stream/events","assignees_url":"https://api.github.com/repos/mozilla/activity-stream/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/activity-stream/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/activity-stream/tags","blobs_url":"https://api.github.com/repos/mozilla/activity-stream/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/activity-stream/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/activity-stream/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/activity-stream/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/activity-stream/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/activity-stream/languages","stargazers_url":"https://api.github.com/repos/mozilla/activity-stream/stargazers","contributors_url":"https://api.github.com/repos/mozilla/activity-stream/contributors","subscribers_url":"https://api.github.com/repos/mozilla/activity-stream/subscribers","subscription_url":"https://api.github.com/repos/mozilla/activity-stream/subscription","commits_url":"https://api.github.com/repos/mozilla/activity-stream/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/activity-stream/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/activity-stream/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/activity-stream/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/activity-stream/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/activity-stream/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/activity-stream/merges","archive_url":"https://api.github.com/repos/mozilla/activity-stream/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/activity-stream/downloads","issues_url":"https://api.github.com/repos/mozilla/activity-stream/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/activity-stream/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/activity-stream/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/activity-stream/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/activity-stream/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/activity-stream/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/activity-stream/deployments","created_at":"2016-01-29T22:28:26Z","updated_at":"2017-05-01T16:56:35Z","pushed_at":"2017-05-03T21:47:22Z","git_url":"git://github.com/mozilla/activity-stream.git","ssh_url":"git@github.com:mozilla/activity-stream.git","clone_url":"https://github.com/mozilla/activity-stream.git","svn_url":"https://github.com/mozilla/activity-stream","homepage":"","size":4468,"stargazers_count":103,"watchers_count":103,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":195,"forks":48,"open_issues":195,"watchers":103,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/2532"},"html":{"href":"https://github.com/mozilla/activity-stream/pull/2532"},"issue":{"href":"https://api.github.com/repos/mozilla/activity-stream/issues/2532"},"comments":{"href":"https://api.github.com/repos/mozilla/activity-stream/issues/2532/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/2532/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/2532/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/activity-stream/statuses/92c1ca0da74b678b91e8d89537c3e438f8bfe3e9"}}}}
{"actor":{"display_login":"dmose"}}