{"action":"created","comment":{"url":"https://api.github.com/repos/ollelauribostrom/rebus/pulls/comments/224362916","pull_request_review_id":163705472,"id":224362916,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDM2MjkxNg==","diff_hunk":"@@ -64,6 +64,28 @@ describe('Tests for components', () => {\n       inputElement.dispatchEvent(new Event('input'));\n       expect(onInput).toHaveBeenCalledWith('T', 0, 0);\n     });\n+    it('jumps to next simbling when a letter is pressed', () => {\n+      const onInput = jest.fn();\n+      const props = { ...mockState, word: 'one', wordIndex: 0, charInput: onInput };\n+      const root = document.createElement('div');\n+      render(Word(props), root);\n+      const inputs = root.querySelectorAll('input');\n+      inputs[0].focus();\n+      inputs[0].value = 'T';\n+      inputs[0].dispatchEvent(new Event('input'));\n+      expect(inputs[1] === document.activeElement).toBeTruthy();\n+    });\n+    it('it remains on the same node when a character that is not a letter is pressed', () => {\n+      const onInput = jest.fn();\n+      const props = { ...mockState, word: 'one', wordIndex: 0, charInput: onInput };\n+      const root = document.createElement('div');\n+      render(Word(props), root);\n+      const inputs = root.querySelectorAll('input');\n+      inputs[0].focus();\n+      inputs[0].value = '!';\n+      inputs[0].dispatchEvent(new Event('input'));\n+      expect(inputs[0] === document.activeElement).toBeTruthy();","path":"tests/components.spec.js","position":24,"original_position":24,"commit_id":"dcb9a671e30b5c588bd9517792fc3ddde232193a","original_commit_id":"dcb9a671e30b5c588bd9517792fc3ddde232193a","user":{"login":"ollelauribostrom","id":16004130,"node_id":"MDQ6VXNlcjE2MDA0MTMw","avatar_url":"https://avatars0.githubusercontent.com/u/16004130?v=4","gravatar_id":"","url":"https://api.github.com/users/ollelauribostrom","html_url":"https://github.com/ollelauribostrom","followers_url":"https://api.github.com/users/ollelauribostrom/followers","following_url":"https://api.github.com/users/ollelauribostrom/following{/other_user}","gists_url":"https://api.github.com/users/ollelauribostrom/gists{/gist_id}","starred_url":"https://api.github.com/users/ollelauribostrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ollelauribostrom/subscriptions","organizations_url":"https://api.github.com/users/ollelauribostrom/orgs","repos_url":"https://api.github.com/users/ollelauribostrom/repos","events_url":"https://api.github.com/users/ollelauribostrom/events{/privacy}","received_events_url":"https://api.github.com/users/ollelauribostrom/received_events","type":"User","site_admin":false},"body":"Use `.toEqual(true)` here","created_at":"2018-10-11T08:43:19Z","updated_at":"2018-10-11T08:46:02Z","html_url":"https://github.com/ollelauribostrom/rebus/pull/41#discussion_r224362916","pull_request_url":"https://api.github.com/repos/ollelauribostrom/rebus/pulls/41","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/ollelauribostrom/rebus/pulls/comments/224362916"},"html":{"href":"https://github.com/ollelauribostrom/rebus/pull/41#discussion_r224362916"},"pull_request":{"href":"https://api.github.com/repos/ollelauribostrom/rebus/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/ollelauribostrom/rebus/pulls/41","id":221940179,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxOTQwMTc5","html_url":"https://github.com/ollelauribostrom/rebus/pull/41","diff_url":"https://github.com/ollelauribostrom/rebus/pull/41.diff","patch_url":"https://github.com/ollelauribostrom/rebus/pull/41.patch","issue_url":"https://api.github.com/repos/ollelauribostrom/rebus/issues/41","number":41,"state":"open","locked":false,"title":"Jump to next input field when key is pressed.","user":{"login":"renatofmachado","id":4793869,"node_id":"MDQ6VXNlcjQ3OTM4Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/4793869?v=4","gravatar_id":"","url":"https://api.github.com/users/renatofmachado","html_url":"https://github.com/renatofmachado","followers_url":"https://api.github.com/users/renatofmachado/followers","following_url":"https://api.github.com/users/renatofmachado/following{/other_user}","gists_url":"https://api.github.com/users/renatofmachado/gists{/gist_id}","starred_url":"https://api.github.com/users/renatofmachado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renatofmachado/subscriptions","organizations_url":"https://api.github.com/users/renatofmachado/orgs","repos_url":"https://api.github.com/users/renatofmachado/repos","events_url":"https://api.github.com/users/renatofmachado/events{/privacy}","received_events_url":"https://api.github.com/users/renatofmachado/received_events","type":"User","site_admin":false},"body":"This eases out the writing mechanic of the game, so that whenever a letter is pressed it moves the focus to the next sibling of the current input field.\r\n\r\n### Summary of Changes\r\n\r\n- Whenever a letter is pressed the next sibling of the current input field will be focused.\r\n","created_at":"2018-10-10T21:32:30Z","updated_at":"2018-10-11T08:46:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe8109f4753156165bf4eb9d0f64a54d38505171","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ollelauribostrom/rebus/pulls/41/commits","review_comments_url":"https://api.github.com/repos/ollelauribostrom/rebus/pulls/41/comments","review_comment_url":"https://api.github.com/repos/ollelauribostrom/rebus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ollelauribostrom/rebus/issues/41/comments","statuses_url":"https://api.github.com/repos/ollelauribostrom/rebus/statuses/dcb9a671e30b5c588bd9517792fc3ddde232193a","head":{"label":"renatofmachado:jump-to-next-char-when-key-is-pressed","ref":"jump-to-next-char-when-key-is-pressed","sha":"dcb9a671e30b5c588bd9517792fc3ddde232193a","user":{"login":"renatofmachado","id":4793869,"node_id":"MDQ6VXNlcjQ3OTM4Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/4793869?v=4","gravatar_id":"","url":"https://api.github.com/users/renatofmachado","html_url":"https://github.com/renatofmachado","followers_url":"https://api.github.com/users/renatofmachado/followers","following_url":"https://api.github.com/users/renatofmachado/following{/other_user}","gists_url":"https://api.github.com/users/renatofmachado/gists{/gist_id}","starred_url":"https://api.github.com/users/renatofmachado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renatofmachado/subscriptions","organizations_url":"https://api.github.com/users/renatofmachado/orgs","repos_url":"https://api.github.com/users/renatofmachado/repos","events_url":"https://api.github.com/users/renatofmachado/events{/privacy}","received_events_url":"https://api.github.com/users/renatofmachado/received_events","type":"User","site_admin":false},"repo":{"id":152485044,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI0ODUwNDQ=","name":"rebus","full_name":"renatofmachado/rebus","private":false,"owner":{"login":"renatofmachado","id":4793869,"node_id":"MDQ6VXNlcjQ3OTM4Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/4793869?v=4","gravatar_id":"","url":"https://api.github.com/users/renatofmachado","html_url":"https://github.com/renatofmachado","followers_url":"https://api.github.com/users/renatofmachado/followers","following_url":"https://api.github.com/users/renatofmachado/following{/other_user}","gists_url":"https://api.github.com/users/renatofmachado/gists{/gist_id}","starred_url":"https://api.github.com/users/renatofmachado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renatofmachado/subscriptions","organizations_url":"https://api.github.com/users/renatofmachado/orgs","repos_url":"https://api.github.com/users/renatofmachado/repos","events_url":"https://api.github.com/users/renatofmachado/events{/privacy}","received_events_url":"https://api.github.com/users/renatofmachado/received_events","type":"User","site_admin":false},"html_url":"https://github.com/renatofmachado/rebus","description":"🌟 👣 Take your first steps as an open source contributor","fork":true,"url":"https://api.github.com/repos/renatofmachado/rebus","forks_url":"https://api.github.com/repos/renatofmachado/rebus/forks","keys_url":"https://api.github.com/repos/renatofmachado/rebus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/renatofmachado/rebus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/renatofmachado/rebus/teams","hooks_url":"https://api.github.com/repos/renatofmachado/rebus/hooks","issue_events_url":"https://api.github.com/repos/renatofmachado/rebus/issues/events{/number}","events_url":"https://api.github.com/repos/renatofmachado/rebus/events","assignees_url":"https://api.github.com/repos/renatofmachado/rebus/assignees{/user}","branches_url":"https://api.github.com/repos/renatofmachado/rebus/branches{/branch}","tags_url":"https://api.github.com/repos/renatofmachado/rebus/tags","blobs_url":"https://api.github.com/repos/renatofmachado/rebus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/renatofmachado/rebus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/renatofmachado/rebus/git/refs{/sha}","trees_url":"https://api.github.com/repos/renatofmachado/rebus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/renatofmachado/rebus/statuses/{sha}","languages_url":"https://api.github.com/repos/renatofmachado/rebus/languages","stargazers_url":"https://api.github.com/repos/renatofmachado/rebus/stargazers","contributors_url":"https://api.github.com/repos/renatofmachado/rebus/contributors","subscribers_url":"https://api.github.com/repos/renatofmachado/rebus/subscribers","subscription_url":"https://api.github.com/repos/renatofmachado/rebus/subscription","commits_url":"https://api.github.com/repos/renatofmachado/rebus/commits{/sha}","git_commits_url":"https://api.github.com/repos/renatofmachado/rebus/git/commits{/sha}","comments_url":"https://api.github.com/repos/renatofmachado/rebus/comments{/number}","issue_comment_url":"https://api.github.com/repos/renatofmachado/rebus/issues/comments{/number}","contents_url":"https://api.github.com/repos/renatofmachado/rebus/contents/{+path}","compare_url":"https://api.github.com/repos/renatofmachado/rebus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/renatofmachado/rebus/merges","archive_url":"https://api.github.com/repos/renatofmachado/rebus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/renatofmachado/rebus/downloads","issues_url":"https://api.github.com/repos/renatofmachado/rebus/issues{/number}","pulls_url":"https://api.github.com/repos/renatofmachado/rebus/pulls{/number}","milestones_url":"https://api.github.com/repos/renatofmachado/rebus/milestones{/number}","notifications_url":"https://api.github.com/repos/renatofmachado/rebus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/renatofmachado/rebus/labels{/name}","releases_url":"https://api.github.com/repos/renatofmachado/rebus/releases{/id}","deployments_url":"https://api.github.com/repos/renatofmachado/rebus/deployments","created_at":"2018-10-10T20:23:06Z","updated_at":"2018-10-10T20:23:08Z","pushed_at":"2018-10-10T22:46:54Z","git_url":"git://github.com/renatofmachado/rebus.git","ssh_url":"git@github.com:renatofmachado/rebus.git","clone_url":"https://github.com/renatofmachado/rebus.git","svn_url":"https://github.com/renatofmachado/rebus","homepage":"","size":693,"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,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ollelauribostrom:master","ref":"master","sha":"f083ff2beb40d7a9e39f4c695e93c68b2e3de71c","user":{"login":"ollelauribostrom","id":16004130,"node_id":"MDQ6VXNlcjE2MDA0MTMw","avatar_url":"https://avatars0.githubusercontent.com/u/16004130?v=4","gravatar_id":"","url":"https://api.github.com/users/ollelauribostrom","html_url":"https://github.com/ollelauribostrom","followers_url":"https://api.github.com/users/ollelauribostrom/followers","following_url":"https://api.github.com/users/ollelauribostrom/following{/other_user}","gists_url":"https://api.github.com/users/ollelauribostrom/gists{/gist_id}","starred_url":"https://api.github.com/users/ollelauribostrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ollelauribostrom/subscriptions","organizations_url":"https://api.github.com/users/ollelauribostrom/orgs","repos_url":"https://api.github.com/users/ollelauribostrom/repos","events_url":"https://api.github.com/users/ollelauribostrom/events{/privacy}","received_events_url":"https://api.github.com/users/ollelauribostrom/received_events","type":"User","site_admin":false},"repo":{"id":150312112,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAzMTIxMTI=","name":"rebus","full_name":"ollelauribostrom/rebus","private":false,"owner":{"login":"ollelauribostrom","id":16004130,"node_id":"MDQ6VXNlcjE2MDA0MTMw","avatar_url":"https://avatars0.githubusercontent.com/u/16004130?v=4","gravatar_id":"","url":"https://api.github.com/users/ollelauribostrom","html_url":"https://github.com/ollelauribostrom","followers_url":"https://api.github.com/users/ollelauribostrom/followers","following_url":"https://api.github.com/users/ollelauribostrom/following{/other_user}","gists_url":"https://api.github.com/users/ollelauribostrom/gists{/gist_id}","starred_url":"https://api.github.com/users/ollelauribostrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ollelauribostrom/subscriptions","organizations_url":"https://api.github.com/users/ollelauribostrom/orgs","repos_url":"https://api.github.com/users/ollelauribostrom/repos","events_url":"https://api.github.com/users/ollelauribostrom/events{/privacy}","received_events_url":"https://api.github.com/users/ollelauribostrom/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ollelauribostrom/rebus","description":"🌟 👣 Take your first steps as an open source contributor","fork":false,"url":"https://api.github.com/repos/ollelauribostrom/rebus","forks_url":"https://api.github.com/repos/ollelauribostrom/rebus/forks","keys_url":"https://api.github.com/repos/ollelauribostrom/rebus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ollelauribostrom/rebus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ollelauribostrom/rebus/teams","hooks_url":"https://api.github.com/repos/ollelauribostrom/rebus/hooks","issue_events_url":"https://api.github.com/repos/ollelauribostrom/rebus/issues/events{/number}","events_url":"https://api.github.com/repos/ollelauribostrom/rebus/events","assignees_url":"https://api.github.com/repos/ollelauribostrom/rebus/assignees{/user}","branches_url":"https://api.github.com/repos/ollelauribostrom/rebus/branches{/branch}","tags_url":"https://api.github.com/repos/ollelauribostrom/rebus/tags","blobs_url":"https://api.github.com/repos/ollelauribostrom/rebus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ollelauribostrom/rebus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ollelauribostrom/rebus/git/refs{/sha}","trees_url":"https://api.github.com/repos/ollelauribostrom/rebus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ollelauribostrom/rebus/statuses/{sha}","languages_url":"https://api.github.com/repos/ollelauribostrom/rebus/languages","stargazers_url":"https://api.github.com/repos/ollelauribostrom/rebus/stargazers","contributors_url":"https://api.github.com/repos/ollelauribostrom/rebus/contributors","subscribers_url":"https://api.github.com/repos/ollelauribostrom/rebus/subscribers","subscription_url":"https://api.github.com/repos/ollelauribostrom/rebus/subscription","commits_url":"https://api.github.com/repos/ollelauribostrom/rebus/commits{/sha}","git_commits_url":"https://api.github.com/repos/ollelauribostrom/rebus/git/commits{/sha}","comments_url":"https://api.github.com/repos/ollelauribostrom/rebus/comments{/number}","issue_comment_url":"https://api.github.com/repos/ollelauribostrom/rebus/issues/comments{/number}","contents_url":"https://api.github.com/repos/ollelauribostrom/rebus/contents/{+path}","compare_url":"https://api.github.com/repos/ollelauribostrom/rebus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ollelauribostrom/rebus/merges","archive_url":"https://api.github.com/repos/ollelauribostrom/rebus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ollelauribostrom/rebus/downloads","issues_url":"https://api.github.com/repos/ollelauribostrom/rebus/issues{/number}","pulls_url":"https://api.github.com/repos/ollelauribostrom/rebus/pulls{/number}","milestones_url":"https://api.github.com/repos/ollelauribostrom/rebus/milestones{/number}","notifications_url":"https://api.github.com/repos/ollelauribostrom/rebus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ollelauribostrom/rebus/labels{/name}","releases_url":"https://api.github.com/repos/ollelauribostrom/rebus/releases{/id}","deployments_url":"https://api.github.com/repos/ollelauribostrom/rebus/deployments","created_at":"2018-09-25T18:34:44Z","updated_at":"2018-10-11T08:23:24Z","pushed_at":"2018-10-11T08:13:57Z","git_url":"git://github.com/ollelauribostrom/rebus.git","ssh_url":"git@github.com:ollelauribostrom/rebus.git","clone_url":"https://github.com/ollelauribostrom/rebus.git","svn_url":"https://github.com/ollelauribostrom/rebus","homepage":"","size":693,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":34,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":34,"open_issues":10,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ollelauribostrom/rebus/pulls/41"},"html":{"href":"https://github.com/ollelauribostrom/rebus/pull/41"},"issue":{"href":"https://api.github.com/repos/ollelauribostrom/rebus/issues/41"},"comments":{"href":"https://api.github.com/repos/ollelauribostrom/rebus/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/ollelauribostrom/rebus/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/ollelauribostrom/rebus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ollelauribostrom/rebus/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/ollelauribostrom/rebus/statuses/dcb9a671e30b5c588bd9517792fc3ddde232193a"}},"author_association":"NONE"}}
{"actor":{"display_login":"ollelauribostrom"}}