{"action":"created","comment":{"url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/comments/48834905","id":48834905,"diff_hunk":"@@ -340,43 +335,44 @@ describe('The DateRangePicker component', function () {\n     describe('each component is provided with a number of event handlers', function () {\n \n       it('onMonthChange calls #changeMonth', function () {\n-        var spy = spyOn(DateRangePicker.prototype.__reactAutoBindMap, 'changeMonth');\n-        this.useDocumentRenderer();\n+        this.useDocumentRenderer({\n+          initialMonth: 6,\n+        });\n         var calendarMonthComponent = TestUtils.scryRenderedComponentsWithType(this.renderedComponent, CalendarMonth)[0];\n         calendarMonthComponent.props.onMonthChange(5);\n-        expect(spy).toHaveBeenCalled();\n+        expect(this.renderedComponent.state.month).toBe(5);\n       });\n \n       it('onYearChange calls #changeYear', function () {\n-        var spy = spyOn(DateRangePicker.prototype.__reactAutoBindMap, 'changeYear');\n-        this.useDocumentRenderer();\n+        this.useDocumentRenderer({\n+          initialYear: 2000,","path":"src/tests/DateRangePicker.spec.js","position":40,"original_position":40,"commit_id":"022714ad42a4b486b02116d7e6b6ff5a098167ad","original_commit_id":"022714ad42a4b486b02116d7e6b6ff5a098167ad","user":{"login":"AlanFoster","id":1271782,"avatar_url":"https://avatars.githubusercontent.com/u/1271782?v=3","gravatar_id":"","url":"https://api.github.com/users/AlanFoster","html_url":"https://github.com/AlanFoster","followers_url":"https://api.github.com/users/AlanFoster/followers","following_url":"https://api.github.com/users/AlanFoster/following{/other_user}","gists_url":"https://api.github.com/users/AlanFoster/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanFoster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanFoster/subscriptions","organizations_url":"https://api.github.com/users/AlanFoster/orgs","repos_url":"https://api.github.com/users/AlanFoster/repos","events_url":"https://api.github.com/users/AlanFoster/events{/privacy}","received_events_url":"https://api.github.com/users/AlanFoster/received_events","type":"User","site_admin":false},"body":":+1:","created_at":"2016-01-05T11:16:13Z","updated_at":"2016-01-05T11:16:13Z","html_url":"https://github.com/onefinestay/react-daterange-picker/pull/117#discussion_r48834905","pull_request_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/117","_links":{"self":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/comments/48834905"},"html":{"href":"https://github.com/onefinestay/react-daterange-picker/pull/117#discussion_r48834905"},"pull_request":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/117","id":53407196,"html_url":"https://github.com/onefinestay/react-daterange-picker/pull/117","diff_url":"https://github.com/onefinestay/react-daterange-picker/pull/117.diff","patch_url":"https://github.com/onefinestay/react-daterange-picker/pull/117.patch","issue_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/issues/117","number":117,"state":"open","locked":false,"title":"Test autobind cleanup","user":{"login":"nicolassenechal","id":631281,"avatar_url":"https://avatars.githubusercontent.com/u/631281?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolassenechal","html_url":"https://github.com/nicolassenechal","followers_url":"https://api.github.com/users/nicolassenechal/followers","following_url":"https://api.github.com/users/nicolassenechal/following{/other_user}","gists_url":"https://api.github.com/users/nicolassenechal/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolassenechal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolassenechal/subscriptions","organizations_url":"https://api.github.com/users/nicolassenechal/orgs","repos_url":"https://api.github.com/users/nicolassenechal/repos","events_url":"https://api.github.com/users/nicolassenechal/events{/privacy}","received_events_url":"https://api.github.com/users/nicolassenechal/received_events","type":"User","site_admin":false},"body":"## What does this pull request do?\r\nIt removes the dependency on React __reactAutoBindMap in tests, testing instead the output of the functions. It also incidentally makes the tests easier to read.","created_at":"2015-12-11T15:41:19Z","updated_at":"2016-01-05T11:16:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46ffcf01ce3e519ecb2d7d73df65983ad9b32b58","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/117/commits","review_comments_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/117/comments","review_comment_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/issues/117/comments","statuses_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/statuses/022714ad42a4b486b02116d7e6b6ff5a098167ad","head":{"label":"nicolassenechal:test-autobind-cleanup","ref":"test-autobind-cleanup","sha":"022714ad42a4b486b02116d7e6b6ff5a098167ad","user":{"login":"nicolassenechal","id":631281,"avatar_url":"https://avatars.githubusercontent.com/u/631281?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolassenechal","html_url":"https://github.com/nicolassenechal","followers_url":"https://api.github.com/users/nicolassenechal/followers","following_url":"https://api.github.com/users/nicolassenechal/following{/other_user}","gists_url":"https://api.github.com/users/nicolassenechal/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolassenechal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolassenechal/subscriptions","organizations_url":"https://api.github.com/users/nicolassenechal/orgs","repos_url":"https://api.github.com/users/nicolassenechal/repos","events_url":"https://api.github.com/users/nicolassenechal/events{/privacy}","received_events_url":"https://api.github.com/users/nicolassenechal/received_events","type":"User","site_admin":false},"repo":{"id":40595656,"name":"react-daterange-picker","full_name":"nicolassenechal/react-daterange-picker","owner":{"login":"nicolassenechal","id":631281,"avatar_url":"https://avatars.githubusercontent.com/u/631281?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolassenechal","html_url":"https://github.com/nicolassenechal","followers_url":"https://api.github.com/users/nicolassenechal/followers","following_url":"https://api.github.com/users/nicolassenechal/following{/other_user}","gists_url":"https://api.github.com/users/nicolassenechal/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolassenechal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolassenechal/subscriptions","organizations_url":"https://api.github.com/users/nicolassenechal/orgs","repos_url":"https://api.github.com/users/nicolassenechal/repos","events_url":"https://api.github.com/users/nicolassenechal/events{/privacy}","received_events_url":"https://api.github.com/users/nicolassenechal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicolassenechal/react-daterange-picker","description":"","fork":true,"url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker","forks_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/forks","keys_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/teams","hooks_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/hooks","issue_events_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/issues/events{/number}","events_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/events","assignees_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/assignees{/user}","branches_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/branches{/branch}","tags_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/tags","blobs_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/statuses/{sha}","languages_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/languages","stargazers_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/stargazers","contributors_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/contributors","subscribers_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/subscribers","subscription_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/subscription","commits_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/contents/{+path}","compare_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/merges","archive_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/downloads","issues_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/issues{/number}","pulls_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/pulls{/number}","milestones_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/milestones{/number}","notifications_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/labels{/name}","releases_url":"https://api.github.com/repos/nicolassenechal/react-daterange-picker/releases{/id}","created_at":"2015-08-12T10:48:59Z","updated_at":"2015-08-12T10:49:00Z","pushed_at":"2015-12-11T15:38:01Z","git_url":"git://github.com/nicolassenechal/react-daterange-picker.git","ssh_url":"git@github.com:nicolassenechal/react-daterange-picker.git","clone_url":"https://github.com/nicolassenechal/react-daterange-picker.git","svn_url":"https://github.com/nicolassenechal/react-daterange-picker","homepage":null,"size":4766,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"onefinestay:master","ref":"master","sha":"59a29acc9095cb647a2609ead120974867fc6fe6","user":{"login":"onefinestay","id":634153,"avatar_url":"https://avatars.githubusercontent.com/u/634153?v=3","gravatar_id":"","url":"https://api.github.com/users/onefinestay","html_url":"https://github.com/onefinestay","followers_url":"https://api.github.com/users/onefinestay/followers","following_url":"https://api.github.com/users/onefinestay/following{/other_user}","gists_url":"https://api.github.com/users/onefinestay/gists{/gist_id}","starred_url":"https://api.github.com/users/onefinestay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onefinestay/subscriptions","organizations_url":"https://api.github.com/users/onefinestay/orgs","repos_url":"https://api.github.com/users/onefinestay/repos","events_url":"https://api.github.com/users/onefinestay/events{/privacy}","received_events_url":"https://api.github.com/users/onefinestay/received_events","type":"Organization","site_admin":false},"repo":{"id":24764503,"name":"react-daterange-picker","full_name":"onefinestay/react-daterange-picker","owner":{"login":"onefinestay","id":634153,"avatar_url":"https://avatars.githubusercontent.com/u/634153?v=3","gravatar_id":"","url":"https://api.github.com/users/onefinestay","html_url":"https://github.com/onefinestay","followers_url":"https://api.github.com/users/onefinestay/followers","following_url":"https://api.github.com/users/onefinestay/following{/other_user}","gists_url":"https://api.github.com/users/onefinestay/gists{/gist_id}","starred_url":"https://api.github.com/users/onefinestay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onefinestay/subscriptions","organizations_url":"https://api.github.com/users/onefinestay/orgs","repos_url":"https://api.github.com/users/onefinestay/repos","events_url":"https://api.github.com/users/onefinestay/events{/privacy}","received_events_url":"https://api.github.com/users/onefinestay/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/onefinestay/react-daterange-picker","description":"","fork":false,"url":"https://api.github.com/repos/onefinestay/react-daterange-picker","forks_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/forks","keys_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/teams","hooks_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/hooks","issue_events_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/issues/events{/number}","events_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/events","assignees_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/assignees{/user}","branches_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/branches{/branch}","tags_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/tags","blobs_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/git/refs{/sha}","trees_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/statuses/{sha}","languages_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/languages","stargazers_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/stargazers","contributors_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/contributors","subscribers_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/subscribers","subscription_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/subscription","commits_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/commits{/sha}","git_commits_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/git/commits{/sha}","comments_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/comments{/number}","issue_comment_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/issues/comments{/number}","contents_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/contents/{+path}","compare_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/merges","archive_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/downloads","issues_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/issues{/number}","pulls_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls{/number}","milestones_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/milestones{/number}","notifications_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/labels{/name}","releases_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/releases{/id}","created_at":"2014-10-03T15:57:48Z","updated_at":"2016-01-05T02:11:31Z","pushed_at":"2015-12-26T20:16:45Z","git_url":"git://github.com/onefinestay/react-daterange-picker.git","ssh_url":"git@github.com:onefinestay/react-daterange-picker.git","clone_url":"https://github.com/onefinestay/react-daterange-picker.git","svn_url":"https://github.com/onefinestay/react-daterange-picker","homepage":null,"size":6640,"stargazers_count":210,"watchers_count":210,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":65,"mirror_url":null,"open_issues_count":32,"forks":65,"open_issues":32,"watchers":210,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/117"},"html":{"href":"https://github.com/onefinestay/react-daterange-picker/pull/117"},"issue":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/issues/117"},"comments":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/statuses/022714ad42a4b486b02116d7e6b6ff5a098167ad"}}}}