{"action":"created","comment":{"url":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/comments/28649795","id":28649795,"diff_hunk":"@@ -412,6 +422,93 @@ describe('Autosuggest', function() {\n     });\n   });\n \n+  describe('onSuggestionFocused and onSuggestionUnfocused', function() {\n+    beforeEach(function() {\n+      onSuggestionFocused.mockClear();\n+      onSuggestionUnfocused.mockClear();\n+    });\n+\n+    describe('String suggestions', function() {\n+      beforeEach(function() {\n+        createAutosuggest(\n+          <Autosuggest suggestions={getSuburbStrings}\n+                       onSuggestionFocused={onSuggestionFocused}\n+                       onSuggestionUnfocused={onSuggestionUnfocused} />\n+        );\n+        setInputValue('m');\n+      });\n+\n+      it('should call onSuggestionFocused when suggestion is focused using mouse', function() {\n+        mouseOverFromInputToSuggestion(1);\n+        expect(onSuggestionFocused).toBeCalledWith('Mordialloc');","path":"src/tests/Autosuggest.js","position":64,"original_position":64,"commit_id":"d48ae5bd99cf33f6786e204524db5d3c6f11b50e","original_commit_id":"d48ae5bd99cf33f6786e204524db5d3c6f11b50e","user":{"login":"moroshko","id":259753,"avatar_url":"https://avatars.githubusercontent.com/u/259753?v=3","gravatar_id":"","url":"https://api.github.com/users/moroshko","html_url":"https://github.com/moroshko","followers_url":"https://api.github.com/users/moroshko/followers","following_url":"https://api.github.com/users/moroshko/following{/other_user}","gists_url":"https://api.github.com/users/moroshko/gists{/gist_id}","starred_url":"https://api.github.com/users/moroshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moroshko/subscriptions","organizations_url":"https://api.github.com/users/moroshko/orgs","repos_url":"https://api.github.com/users/moroshko/repos","events_url":"https://api.github.com/users/moroshko/events{/privacy}","received_events_url":"https://api.github.com/users/moroshko/received_events","type":"User","site_admin":false},"body":"Make sure also that `onSuggestionUnfocused` wasn't called?","created_at":"2015-04-19T04:58:06Z","updated_at":"2015-04-19T04:58:06Z","html_url":"https://github.com/moroshko/react-autosuggest/pull/9#discussion_r28649795","pull_request_url":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/comments/28649795"},"html":{"href":"https://github.com/moroshko/react-autosuggest/pull/9#discussion_r28649795"},"pull_request":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/9","id":33321383,"html_url":"https://github.com/moroshko/react-autosuggest/pull/9","diff_url":"https://github.com/moroshko/react-autosuggest/pull/9.diff","patch_url":"https://github.com/moroshko/react-autosuggest/pull/9.patch","issue_url":"https://api.github.com/repos/moroshko/react-autosuggest/issues/9","number":9,"state":"open","locked":false,"title":"Support for onSuggestionFocused and onSuggestionUnfocused options","user":{"login":"jstejada","id":1271509,"avatar_url":"https://avatars.githubusercontent.com/u/1271509?v=3","gravatar_id":"","url":"https://api.github.com/users/jstejada","html_url":"https://github.com/jstejada","followers_url":"https://api.github.com/users/jstejada/followers","following_url":"https://api.github.com/users/jstejada/following{/other_user}","gists_url":"https://api.github.com/users/jstejada/gists{/gist_id}","starred_url":"https://api.github.com/users/jstejada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstejada/subscriptions","organizations_url":"https://api.github.com/users/jstejada/orgs","repos_url":"https://api.github.com/users/jstejada/repos","events_url":"https://api.github.com/users/jstejada/events{/privacy}","received_events_url":"https://api.github.com/users/jstejada/received_events","type":"User","site_admin":false},"body":"Hi @moroshko  , I'm just submitting this tiny pull request to add support for a onSuggestionFocused callback option as I mention in #7 \r\n\r\nLet me know what you think","created_at":"2015-04-15T04:10:49Z","updated_at":"2015-04-19T04:58:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f56f64a65cc86c1460b7dc04dbd3271c660ca7d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/9/commits","review_comments_url":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/9/comments","review_comment_url":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moroshko/react-autosuggest/issues/9/comments","statuses_url":"https://api.github.com/repos/moroshko/react-autosuggest/statuses/d48ae5bd99cf33f6786e204524db5d3c6f11b50e","head":{"label":"jstejada:master","ref":"master","sha":"d48ae5bd99cf33f6786e204524db5d3c6f11b50e","user":{"login":"jstejada","id":1271509,"avatar_url":"https://avatars.githubusercontent.com/u/1271509?v=3","gravatar_id":"","url":"https://api.github.com/users/jstejada","html_url":"https://github.com/jstejada","followers_url":"https://api.github.com/users/jstejada/followers","following_url":"https://api.github.com/users/jstejada/following{/other_user}","gists_url":"https://api.github.com/users/jstejada/gists{/gist_id}","starred_url":"https://api.github.com/users/jstejada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstejada/subscriptions","organizations_url":"https://api.github.com/users/jstejada/orgs","repos_url":"https://api.github.com/users/jstejada/repos","events_url":"https://api.github.com/users/jstejada/events{/privacy}","received_events_url":"https://api.github.com/users/jstejada/received_events","type":"User","site_admin":false},"repo":{"id":33972493,"name":"react-autosuggest","full_name":"jstejada/react-autosuggest","owner":{"login":"jstejada","id":1271509,"avatar_url":"https://avatars.githubusercontent.com/u/1271509?v=3","gravatar_id":"","url":"https://api.github.com/users/jstejada","html_url":"https://github.com/jstejada","followers_url":"https://api.github.com/users/jstejada/followers","following_url":"https://api.github.com/users/jstejada/following{/other_user}","gists_url":"https://api.github.com/users/jstejada/gists{/gist_id}","starred_url":"https://api.github.com/users/jstejada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstejada/subscriptions","organizations_url":"https://api.github.com/users/jstejada/orgs","repos_url":"https://api.github.com/users/jstejada/repos","events_url":"https://api.github.com/users/jstejada/events{/privacy}","received_events_url":"https://api.github.com/users/jstejada/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jstejada/react-autosuggest","description":"WAI-ARIA compliant React autosuggest component","fork":true,"url":"https://api.github.com/repos/jstejada/react-autosuggest","forks_url":"https://api.github.com/repos/jstejada/react-autosuggest/forks","keys_url":"https://api.github.com/repos/jstejada/react-autosuggest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jstejada/react-autosuggest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jstejada/react-autosuggest/teams","hooks_url":"https://api.github.com/repos/jstejada/react-autosuggest/hooks","issue_events_url":"https://api.github.com/repos/jstejada/react-autosuggest/issues/events{/number}","events_url":"https://api.github.com/repos/jstejada/react-autosuggest/events","assignees_url":"https://api.github.com/repos/jstejada/react-autosuggest/assignees{/user}","branches_url":"https://api.github.com/repos/jstejada/react-autosuggest/branches{/branch}","tags_url":"https://api.github.com/repos/jstejada/react-autosuggest/tags","blobs_url":"https://api.github.com/repos/jstejada/react-autosuggest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jstejada/react-autosuggest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jstejada/react-autosuggest/git/refs{/sha}","trees_url":"https://api.github.com/repos/jstejada/react-autosuggest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jstejada/react-autosuggest/statuses/{sha}","languages_url":"https://api.github.com/repos/jstejada/react-autosuggest/languages","stargazers_url":"https://api.github.com/repos/jstejada/react-autosuggest/stargazers","contributors_url":"https://api.github.com/repos/jstejada/react-autosuggest/contributors","subscribers_url":"https://api.github.com/repos/jstejada/react-autosuggest/subscribers","subscription_url":"https://api.github.com/repos/jstejada/react-autosuggest/subscription","commits_url":"https://api.github.com/repos/jstejada/react-autosuggest/commits{/sha}","git_commits_url":"https://api.github.com/repos/jstejada/react-autosuggest/git/commits{/sha}","comments_url":"https://api.github.com/repos/jstejada/react-autosuggest/comments{/number}","issue_comment_url":"https://api.github.com/repos/jstejada/react-autosuggest/issues/comments{/number}","contents_url":"https://api.github.com/repos/jstejada/react-autosuggest/contents/{+path}","compare_url":"https://api.github.com/repos/jstejada/react-autosuggest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jstejada/react-autosuggest/merges","archive_url":"https://api.github.com/repos/jstejada/react-autosuggest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jstejada/react-autosuggest/downloads","issues_url":"https://api.github.com/repos/jstejada/react-autosuggest/issues{/number}","pulls_url":"https://api.github.com/repos/jstejada/react-autosuggest/pulls{/number}","milestones_url":"https://api.github.com/repos/jstejada/react-autosuggest/milestones{/number}","notifications_url":"https://api.github.com/repos/jstejada/react-autosuggest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jstejada/react-autosuggest/labels{/name}","releases_url":"https://api.github.com/repos/jstejada/react-autosuggest/releases{/id}","created_at":"2015-04-15T04:06:49Z","updated_at":"2015-04-18T16:49:25Z","pushed_at":"2015-04-18T16:49:25Z","git_url":"git://github.com/jstejada/react-autosuggest.git","ssh_url":"git@github.com:jstejada/react-autosuggest.git","clone_url":"https://github.com/jstejada/react-autosuggest.git","svn_url":"https://github.com/jstejada/react-autosuggest","homepage":"","size":1129,"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":"moroshko:master","ref":"master","sha":"5c003a7cf6467c7d3123b22884a9e0ca9566f934","user":{"login":"moroshko","id":259753,"avatar_url":"https://avatars.githubusercontent.com/u/259753?v=3","gravatar_id":"","url":"https://api.github.com/users/moroshko","html_url":"https://github.com/moroshko","followers_url":"https://api.github.com/users/moroshko/followers","following_url":"https://api.github.com/users/moroshko/following{/other_user}","gists_url":"https://api.github.com/users/moroshko/gists{/gist_id}","starred_url":"https://api.github.com/users/moroshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moroshko/subscriptions","organizations_url":"https://api.github.com/users/moroshko/orgs","repos_url":"https://api.github.com/users/moroshko/repos","events_url":"https://api.github.com/users/moroshko/events{/privacy}","received_events_url":"https://api.github.com/users/moroshko/received_events","type":"User","site_admin":false},"repo":{"id":31810895,"name":"react-autosuggest","full_name":"moroshko/react-autosuggest","owner":{"login":"moroshko","id":259753,"avatar_url":"https://avatars.githubusercontent.com/u/259753?v=3","gravatar_id":"","url":"https://api.github.com/users/moroshko","html_url":"https://github.com/moroshko","followers_url":"https://api.github.com/users/moroshko/followers","following_url":"https://api.github.com/users/moroshko/following{/other_user}","gists_url":"https://api.github.com/users/moroshko/gists{/gist_id}","starred_url":"https://api.github.com/users/moroshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moroshko/subscriptions","organizations_url":"https://api.github.com/users/moroshko/orgs","repos_url":"https://api.github.com/users/moroshko/repos","events_url":"https://api.github.com/users/moroshko/events{/privacy}","received_events_url":"https://api.github.com/users/moroshko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/moroshko/react-autosuggest","description":"WAI-ARIA compliant React autosuggest component","fork":false,"url":"https://api.github.com/repos/moroshko/react-autosuggest","forks_url":"https://api.github.com/repos/moroshko/react-autosuggest/forks","keys_url":"https://api.github.com/repos/moroshko/react-autosuggest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moroshko/react-autosuggest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moroshko/react-autosuggest/teams","hooks_url":"https://api.github.com/repos/moroshko/react-autosuggest/hooks","issue_events_url":"https://api.github.com/repos/moroshko/react-autosuggest/issues/events{/number}","events_url":"https://api.github.com/repos/moroshko/react-autosuggest/events","assignees_url":"https://api.github.com/repos/moroshko/react-autosuggest/assignees{/user}","branches_url":"https://api.github.com/repos/moroshko/react-autosuggest/branches{/branch}","tags_url":"https://api.github.com/repos/moroshko/react-autosuggest/tags","blobs_url":"https://api.github.com/repos/moroshko/react-autosuggest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moroshko/react-autosuggest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moroshko/react-autosuggest/git/refs{/sha}","trees_url":"https://api.github.com/repos/moroshko/react-autosuggest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moroshko/react-autosuggest/statuses/{sha}","languages_url":"https://api.github.com/repos/moroshko/react-autosuggest/languages","stargazers_url":"https://api.github.com/repos/moroshko/react-autosuggest/stargazers","contributors_url":"https://api.github.com/repos/moroshko/react-autosuggest/contributors","subscribers_url":"https://api.github.com/repos/moroshko/react-autosuggest/subscribers","subscription_url":"https://api.github.com/repos/moroshko/react-autosuggest/subscription","commits_url":"https://api.github.com/repos/moroshko/react-autosuggest/commits{/sha}","git_commits_url":"https://api.github.com/repos/moroshko/react-autosuggest/git/commits{/sha}","comments_url":"https://api.github.com/repos/moroshko/react-autosuggest/comments{/number}","issue_comment_url":"https://api.github.com/repos/moroshko/react-autosuggest/issues/comments{/number}","contents_url":"https://api.github.com/repos/moroshko/react-autosuggest/contents/{+path}","compare_url":"https://api.github.com/repos/moroshko/react-autosuggest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moroshko/react-autosuggest/merges","archive_url":"https://api.github.com/repos/moroshko/react-autosuggest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moroshko/react-autosuggest/downloads","issues_url":"https://api.github.com/repos/moroshko/react-autosuggest/issues{/number}","pulls_url":"https://api.github.com/repos/moroshko/react-autosuggest/pulls{/number}","milestones_url":"https://api.github.com/repos/moroshko/react-autosuggest/milestones{/number}","notifications_url":"https://api.github.com/repos/moroshko/react-autosuggest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moroshko/react-autosuggest/labels{/name}","releases_url":"https://api.github.com/repos/moroshko/react-autosuggest/releases{/id}","created_at":"2015-03-07T12:09:12Z","updated_at":"2015-04-18T18:12:47Z","pushed_at":"2015-04-18T16:49:25Z","git_url":"git://github.com/moroshko/react-autosuggest.git","ssh_url":"git@github.com:moroshko/react-autosuggest.git","clone_url":"https://github.com/moroshko/react-autosuggest.git","svn_url":"https://github.com/moroshko/react-autosuggest","homepage":"","size":2303,"stargazers_count":34,"watchers_count":34,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":3,"forks":7,"open_issues":3,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/9"},"html":{"href":"https://github.com/moroshko/react-autosuggest/pull/9"},"issue":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/issues/9"},"comments":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/statuses/d48ae5bd99cf33f6786e204524db5d3c6f11b50e"}}}}