{"action":"created","comment":{"url":"https://api.github.com/repos/conveyal/scenario-editor/pulls/comments/83893283","pull_request_review_id":4706273,"id":83893283,"diff_hunk":"@@ -0,0 +1,55 @@\n+/* global describe, it, expect, jest */\n+\n+import { mount } from 'enzyme'\n+import React from 'react'\n+import { Provider } from 'react-redux'\n+\n+import Leaflet from '../../test-utils/mock-leaflet'\n+import { mockFeed, mockMapState, mockModification } from '../../test-utils/mock-data.js'\n+import makeMockStore from '../../test-utils/mock-store.js'\n+\n+import ScenarioMap from '../../lib/scenario-map/index'\n+\n+const mockStore = makeMockStore({\n+  analysis: {},\n+  mapState: mockMapState,\n+  scenario: {}\n+})\n+\n+describe('Component > ScenarioMap', () => {\n+  it('renders correctly', () => {\n+    const props = {\n+      activeModification: mockModification,\n+      bundleId: '1',\n+      centerLatlng: { lat: 38.8886, lng: -77.0430 },\n+      feeds: mockFeed,\n+      feedsById: { '1': mockFeed },\n+      modifications: [mockModification],\n+      modificationsById: { '1': mockModification },\n+      scenarioIsReady: true,\n+      replaceModification: jest.fn(),\n+      setMapState: jest.fn()\n+    }\n+\n+    // mount component\n+    mount(\n+      <Provider store={mockStore}>\n+        <ScenarioMap\n+          {...props}\n+          />\n+      </Provider>\n+      , {\n+        attachTo: document.getElementById('test')\n+      }\n+    )\n+    Leaflet.map // TODO test rendering of various modifications","path":"__tests__/scenario-map/index.js","position":45,"original_position":45,"commit_id":"df253506c415b7271e9ed85b2e4f228529774881","original_commit_id":"df253506c415b7271e9ed85b2e4f228529774881","user":{"login":"trevorgerhardt","id":776780,"avatar_url":"https://avatars.githubusercontent.com/u/776780?v=3","gravatar_id":"","url":"https://api.github.com/users/trevorgerhardt","html_url":"https://github.com/trevorgerhardt","followers_url":"https://api.github.com/users/trevorgerhardt/followers","following_url":"https://api.github.com/users/trevorgerhardt/following{/other_user}","gists_url":"https://api.github.com/users/trevorgerhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/trevorgerhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevorgerhardt/subscriptions","organizations_url":"https://api.github.com/users/trevorgerhardt/orgs","repos_url":"https://api.github.com/users/trevorgerhardt/repos","events_url":"https://api.github.com/users/trevorgerhardt/events{/privacy}","received_events_url":"https://api.github.com/users/trevorgerhardt/received_events","type":"User","site_admin":false},"body":"@evansiroky you can import without assigning.  Switching `import Leaflet from '../../test-utils/mock-leaflet'` to `import '../../test-utils/mock-leaflet'` would remove the standard error.","created_at":"2016-10-18T16:19:33Z","updated_at":"2016-10-18T16:19:33Z","html_url":"https://github.com/conveyal/scenario-editor/pull/170#discussion_r83893283","pull_request_url":"https://api.github.com/repos/conveyal/scenario-editor/pulls/170","_links":{"self":{"href":"https://api.github.com/repos/conveyal/scenario-editor/pulls/comments/83893283"},"html":{"href":"https://github.com/conveyal/scenario-editor/pull/170#discussion_r83893283"},"pull_request":{"href":"https://api.github.com/repos/conveyal/scenario-editor/pulls/170"}}},"pull_request":{"url":"https://api.github.com/repos/conveyal/scenario-editor/pulls/170","id":89478482,"html_url":"https://github.com/conveyal/scenario-editor/pull/170","diff_url":"https://github.com/conveyal/scenario-editor/pull/170.diff","patch_url":"https://github.com/conveyal/scenario-editor/pull/170.patch","issue_url":"https://api.github.com/repos/conveyal/scenario-editor/issues/170","number":170,"state":"open","locked":false,"title":"Add tests for scenario-map components","user":{"login":"evansiroky","id":3112493,"avatar_url":"https://avatars.githubusercontent.com/u/3112493?v=3","gravatar_id":"","url":"https://api.github.com/users/evansiroky","html_url":"https://github.com/evansiroky","followers_url":"https://api.github.com/users/evansiroky/followers","following_url":"https://api.github.com/users/evansiroky/following{/other_user}","gists_url":"https://api.github.com/users/evansiroky/gists{/gist_id}","starred_url":"https://api.github.com/users/evansiroky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evansiroky/subscriptions","organizations_url":"https://api.github.com/users/evansiroky/orgs","repos_url":"https://api.github.com/users/evansiroky/repos","events_url":"https://api.github.com/users/evansiroky/events{/privacy}","received_events_url":"https://api.github.com/users/evansiroky/received_events","type":"User","site_admin":false},"body":"That should be it for testing components!","created_at":"2016-10-15T02:17:41Z","updated_at":"2016-10-18T16:19:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cde27bcb0a5fd02da4d5bb897203f558e670e979","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/conveyal/scenario-editor/pulls/170/commits","review_comments_url":"https://api.github.com/repos/conveyal/scenario-editor/pulls/170/comments","review_comment_url":"https://api.github.com/repos/conveyal/scenario-editor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/conveyal/scenario-editor/issues/170/comments","statuses_url":"https://api.github.com/repos/conveyal/scenario-editor/statuses/df253506c415b7271e9ed85b2e4f228529774881","head":{"label":"conveyal:scenario-map-tests","ref":"scenario-map-tests","sha":"df253506c415b7271e9ed85b2e4f228529774881","user":{"login":"conveyal","id":3592637,"avatar_url":"https://avatars.githubusercontent.com/u/3592637?v=3","gravatar_id":"","url":"https://api.github.com/users/conveyal","html_url":"https://github.com/conveyal","followers_url":"https://api.github.com/users/conveyal/followers","following_url":"https://api.github.com/users/conveyal/following{/other_user}","gists_url":"https://api.github.com/users/conveyal/gists{/gist_id}","starred_url":"https://api.github.com/users/conveyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conveyal/subscriptions","organizations_url":"https://api.github.com/users/conveyal/orgs","repos_url":"https://api.github.com/users/conveyal/repos","events_url":"https://api.github.com/users/conveyal/events{/privacy}","received_events_url":"https://api.github.com/users/conveyal/received_events","type":"Organization","site_admin":false},"repo":{"id":49971505,"name":"scenario-editor","full_name":"conveyal/scenario-editor","owner":{"login":"conveyal","id":3592637,"avatar_url":"https://avatars.githubusercontent.com/u/3592637?v=3","gravatar_id":"","url":"https://api.github.com/users/conveyal","html_url":"https://github.com/conveyal","followers_url":"https://api.github.com/users/conveyal/followers","following_url":"https://api.github.com/users/conveyal/following{/other_user}","gists_url":"https://api.github.com/users/conveyal/gists{/gist_id}","starred_url":"https://api.github.com/users/conveyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conveyal/subscriptions","organizations_url":"https://api.github.com/users/conveyal/orgs","repos_url":"https://api.github.com/users/conveyal/repos","events_url":"https://api.github.com/users/conveyal/events{/privacy}","received_events_url":"https://api.github.com/users/conveyal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/conveyal/scenario-editor","description":"Conveyal's frontend for editing transportation scenarios.","fork":false,"url":"https://api.github.com/repos/conveyal/scenario-editor","forks_url":"https://api.github.com/repos/conveyal/scenario-editor/forks","keys_url":"https://api.github.com/repos/conveyal/scenario-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/conveyal/scenario-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/conveyal/scenario-editor/teams","hooks_url":"https://api.github.com/repos/conveyal/scenario-editor/hooks","issue_events_url":"https://api.github.com/repos/conveyal/scenario-editor/issues/events{/number}","events_url":"https://api.github.com/repos/conveyal/scenario-editor/events","assignees_url":"https://api.github.com/repos/conveyal/scenario-editor/assignees{/user}","branches_url":"https://api.github.com/repos/conveyal/scenario-editor/branches{/branch}","tags_url":"https://api.github.com/repos/conveyal/scenario-editor/tags","blobs_url":"https://api.github.com/repos/conveyal/scenario-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/conveyal/scenario-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/conveyal/scenario-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/conveyal/scenario-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/conveyal/scenario-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/conveyal/scenario-editor/languages","stargazers_url":"https://api.github.com/repos/conveyal/scenario-editor/stargazers","contributors_url":"https://api.github.com/repos/conveyal/scenario-editor/contributors","subscribers_url":"https://api.github.com/repos/conveyal/scenario-editor/subscribers","subscription_url":"https://api.github.com/repos/conveyal/scenario-editor/subscription","commits_url":"https://api.github.com/repos/conveyal/scenario-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/conveyal/scenario-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/conveyal/scenario-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/conveyal/scenario-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/conveyal/scenario-editor/contents/{+path}","compare_url":"https://api.github.com/repos/conveyal/scenario-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/conveyal/scenario-editor/merges","archive_url":"https://api.github.com/repos/conveyal/scenario-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/conveyal/scenario-editor/downloads","issues_url":"https://api.github.com/repos/conveyal/scenario-editor/issues{/number}","pulls_url":"https://api.github.com/repos/conveyal/scenario-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/conveyal/scenario-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/conveyal/scenario-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/conveyal/scenario-editor/labels{/name}","releases_url":"https://api.github.com/repos/conveyal/scenario-editor/releases{/id}","deployments_url":"https://api.github.com/repos/conveyal/scenario-editor/deployments","created_at":"2016-01-19T17:53:13Z","updated_at":"2016-09-27T22:28:03Z","pushed_at":"2016-10-18T05:28:30Z","git_url":"git://github.com/conveyal/scenario-editor.git","ssh_url":"git@github.com:conveyal/scenario-editor.git","clone_url":"https://github.com/conveyal/scenario-editor.git","svn_url":"https://github.com/conveyal/scenario-editor","homepage":null,"size":48652,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":46,"forks":2,"open_issues":46,"watchers":4,"default_branch":"dev"}},"base":{"label":"conveyal:dev","ref":"dev","sha":"f10c09a0e346dce03e2fa7bc570d2c3eb2202617","user":{"login":"conveyal","id":3592637,"avatar_url":"https://avatars.githubusercontent.com/u/3592637?v=3","gravatar_id":"","url":"https://api.github.com/users/conveyal","html_url":"https://github.com/conveyal","followers_url":"https://api.github.com/users/conveyal/followers","following_url":"https://api.github.com/users/conveyal/following{/other_user}","gists_url":"https://api.github.com/users/conveyal/gists{/gist_id}","starred_url":"https://api.github.com/users/conveyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conveyal/subscriptions","organizations_url":"https://api.github.com/users/conveyal/orgs","repos_url":"https://api.github.com/users/conveyal/repos","events_url":"https://api.github.com/users/conveyal/events{/privacy}","received_events_url":"https://api.github.com/users/conveyal/received_events","type":"Organization","site_admin":false},"repo":{"id":49971505,"name":"scenario-editor","full_name":"conveyal/scenario-editor","owner":{"login":"conveyal","id":3592637,"avatar_url":"https://avatars.githubusercontent.com/u/3592637?v=3","gravatar_id":"","url":"https://api.github.com/users/conveyal","html_url":"https://github.com/conveyal","followers_url":"https://api.github.com/users/conveyal/followers","following_url":"https://api.github.com/users/conveyal/following{/other_user}","gists_url":"https://api.github.com/users/conveyal/gists{/gist_id}","starred_url":"https://api.github.com/users/conveyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conveyal/subscriptions","organizations_url":"https://api.github.com/users/conveyal/orgs","repos_url":"https://api.github.com/users/conveyal/repos","events_url":"https://api.github.com/users/conveyal/events{/privacy}","received_events_url":"https://api.github.com/users/conveyal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/conveyal/scenario-editor","description":"Conveyal's frontend for editing transportation scenarios.","fork":false,"url":"https://api.github.com/repos/conveyal/scenario-editor","forks_url":"https://api.github.com/repos/conveyal/scenario-editor/forks","keys_url":"https://api.github.com/repos/conveyal/scenario-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/conveyal/scenario-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/conveyal/scenario-editor/teams","hooks_url":"https://api.github.com/repos/conveyal/scenario-editor/hooks","issue_events_url":"https://api.github.com/repos/conveyal/scenario-editor/issues/events{/number}","events_url":"https://api.github.com/repos/conveyal/scenario-editor/events","assignees_url":"https://api.github.com/repos/conveyal/scenario-editor/assignees{/user}","branches_url":"https://api.github.com/repos/conveyal/scenario-editor/branches{/branch}","tags_url":"https://api.github.com/repos/conveyal/scenario-editor/tags","blobs_url":"https://api.github.com/repos/conveyal/scenario-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/conveyal/scenario-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/conveyal/scenario-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/conveyal/scenario-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/conveyal/scenario-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/conveyal/scenario-editor/languages","stargazers_url":"https://api.github.com/repos/conveyal/scenario-editor/stargazers","contributors_url":"https://api.github.com/repos/conveyal/scenario-editor/contributors","subscribers_url":"https://api.github.com/repos/conveyal/scenario-editor/subscribers","subscription_url":"https://api.github.com/repos/conveyal/scenario-editor/subscription","commits_url":"https://api.github.com/repos/conveyal/scenario-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/conveyal/scenario-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/conveyal/scenario-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/conveyal/scenario-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/conveyal/scenario-editor/contents/{+path}","compare_url":"https://api.github.com/repos/conveyal/scenario-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/conveyal/scenario-editor/merges","archive_url":"https://api.github.com/repos/conveyal/scenario-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/conveyal/scenario-editor/downloads","issues_url":"https://api.github.com/repos/conveyal/scenario-editor/issues{/number}","pulls_url":"https://api.github.com/repos/conveyal/scenario-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/conveyal/scenario-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/conveyal/scenario-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/conveyal/scenario-editor/labels{/name}","releases_url":"https://api.github.com/repos/conveyal/scenario-editor/releases{/id}","deployments_url":"https://api.github.com/repos/conveyal/scenario-editor/deployments","created_at":"2016-01-19T17:53:13Z","updated_at":"2016-09-27T22:28:03Z","pushed_at":"2016-10-18T05:28:30Z","git_url":"git://github.com/conveyal/scenario-editor.git","ssh_url":"git@github.com:conveyal/scenario-editor.git","clone_url":"https://github.com/conveyal/scenario-editor.git","svn_url":"https://github.com/conveyal/scenario-editor","homepage":null,"size":48652,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":46,"forks":2,"open_issues":46,"watchers":4,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/conveyal/scenario-editor/pulls/170"},"html":{"href":"https://github.com/conveyal/scenario-editor/pull/170"},"issue":{"href":"https://api.github.com/repos/conveyal/scenario-editor/issues/170"},"comments":{"href":"https://api.github.com/repos/conveyal/scenario-editor/issues/170/comments"},"review_comments":{"href":"https://api.github.com/repos/conveyal/scenario-editor/pulls/170/comments"},"review_comment":{"href":"https://api.github.com/repos/conveyal/scenario-editor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/conveyal/scenario-editor/pulls/170/commits"},"statuses":{"href":"https://api.github.com/repos/conveyal/scenario-editor/statuses/df253506c415b7271e9ed85b2e4f228529774881"}}}}
{"actor":{"display_login":"trevorgerhardt"}}