{"action":"created","comment":{"url":"https://api.github.com/repos/quickwords/quickwords/pulls/comments/221675128","pull_request_review_id":160381851,"id":221675128,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTY3NTEyOA==","diff_hunk":"@@ -175,4 +267,152 @@ describe('SnippetsManager', () => {\n                 })\n         })\n     })\n+\n+    describe('_isBackspace', () => {\n+        it('returns true when keycode matches', () => {\n+            assert.equal(true, snippetsManager._isBackspace(14))\n+        })\n+\n+        it('returns false with any other keycode', () => {\n+            [1, 2, 3].forEach((i) => assert.equal(false, snippetsManager._isBackspace(i)))\n+        })\n+    })\n+\n+    describe('_eventToUnicode', () => {\n+        it('returns correct unicode value with no modifiers', () => {\n+            const event = {\n+                keycode: 30, // A\n+                shiftKey: false,\n+                altKey: false,\n+                ctrlKey: false,\n+                metaKey: false,\n+            }\n+\n+            assert.equal('a', snippetsManager._eventToUnicode(event))\n+        })\n+\n+        it('returns correct unicode value with shift pressed', () => {\n+            const event = {\n+                keycode: 30, // A\n+                shiftKey: true,\n+                altKey: false,\n+                ctrlKey: false,\n+                metaKey: false,\n+            }\n+\n+            assert.equal('A', snippetsManager._eventToUnicode(event))\n+        })\n+\n+        it('returns correct unicode value with alt gr pressed for Polish Pro layout', () => {\n+            const event = {\n+                keycode: 30, // A\n+                shiftKey: false,\n+                altKey: true,\n+                ctrlKey: false,\n+                metaKey: false,\n+            }\n+\n+            assert.equal('ą', snippetsManager._eventToUnicode(event))\n+        })\n+\n+        it('returns correct unicode value with alt gr and shift pressed for Polish Pro layout', () => {\n+            const event = {\n+                keycode: 30, // A\n+                shiftKey: true,\n+                altKey: true,\n+                ctrlKey: false,\n+                metaKey: false,\n+            }\n+\n+            assert.equal('Ą', snippetsManager._eventToUnicode(event))\n+        })\n+\n+        it('returns false if ctrl is pressed', () => {\n+            const event = {\n+                keycode: 30, // A\n+                shiftKey: false,\n+                altKey: false,\n+                ctrlKey: true,\n+                metaKey: false,\n+            }\n+\n+            assert.equal(false, snippetsManager._eventToUnicode(event))\n+        })\n+\n+        it('returns false if meta is pressed', () => {\n+            const event = {\n+                keycode: 30, // A\n+                shiftKey: false,\n+                altKey: false,\n+                ctrlKey: false,\n+                metaKey: true,\n+            }\n+\n+            assert.equal(false, snippetsManager._eventToUnicode(event))\n+        })\n+    })\n+\n+    describe('_resetBuffer', () => {\n+        it('resets the buffer', () => {\n+            const snippetsManager = new SnippetsManager({ store, keyboardHandler, keyboardSimulator, clipboard })\n+\n+            snippetsManager.buffer = 'abcd'\n+            assert.equal('abcd', snippetsManager.buffer)\n+\n+            snippetsManager._resetBuffer()\n+            assert.equal('', snippetsManager.buffer)\n+        })\n+    })\n+\n+    describe('_shouldResetBuffer', () => {","path":"test/main/modules/SnippetsManagerTest.js","position":204,"original_position":204,"commit_id":"723aaac88ddf094bd2421e23e499887a19c7c101","original_commit_id":"723aaac88ddf094bd2421e23e499887a19c7c101","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'describe' is not defined                                                                                      no-undef","created_at":"2018-10-01T16:34:33Z","updated_at":"2018-10-01T16:34:34Z","html_url":"https://github.com/quickwords/quickwords/pull/26#discussion_r221675128","pull_request_url":"https://api.github.com/repos/quickwords/quickwords/pulls/26","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/quickwords/quickwords/pulls/comments/221675128"},"html":{"href":"https://github.com/quickwords/quickwords/pull/26#discussion_r221675128"},"pull_request":{"href":"https://api.github.com/repos/quickwords/quickwords/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/quickwords/quickwords/pulls/26","id":198488240,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NDg4MjQw","html_url":"https://github.com/quickwords/quickwords/pull/26","diff_url":"https://github.com/quickwords/quickwords/pull/26.diff","patch_url":"https://github.com/quickwords/quickwords/pull/26.patch","issue_url":"https://api.github.com/repos/quickwords/quickwords/issues/26","number":26,"state":"open","locked":false,"title":"[WIP] Linux & Windows support","user":{"login":"DCzajkowski","id":4501047,"node_id":"MDQ6VXNlcjQ1MDEwNDc=","avatar_url":"https://avatars1.githubusercontent.com/u/4501047?v=4","gravatar_id":"","url":"https://api.github.com/users/DCzajkowski","html_url":"https://github.com/DCzajkowski","followers_url":"https://api.github.com/users/DCzajkowski/followers","following_url":"https://api.github.com/users/DCzajkowski/following{/other_user}","gists_url":"https://api.github.com/users/DCzajkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/DCzajkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DCzajkowski/subscriptions","organizations_url":"https://api.github.com/users/DCzajkowski/orgs","repos_url":"https://api.github.com/users/DCzajkowski/repos","events_url":"https://api.github.com/users/DCzajkowski/events{/privacy}","received_events_url":"https://api.github.com/users/DCzajkowski/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-30T18:17:10Z","updated_at":"2018-10-01T16:34:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a35b646c908e0bead4b2f72889c58ca84bdfb8b7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/quickwords/quickwords/pulls/26/commits","review_comments_url":"https://api.github.com/repos/quickwords/quickwords/pulls/26/comments","review_comment_url":"https://api.github.com/repos/quickwords/quickwords/pulls/comments{/number}","comments_url":"https://api.github.com/repos/quickwords/quickwords/issues/26/comments","statuses_url":"https://api.github.com/repos/quickwords/quickwords/statuses/723aaac88ddf094bd2421e23e499887a19c7c101","head":{"label":"quickwords:linux-windows","ref":"linux-windows","sha":"723aaac88ddf094bd2421e23e499887a19c7c101","user":{"login":"quickwords","id":36318302,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MzE4MzAy","avatar_url":"https://avatars3.githubusercontent.com/u/36318302?v=4","gravatar_id":"","url":"https://api.github.com/users/quickwords","html_url":"https://github.com/quickwords","followers_url":"https://api.github.com/users/quickwords/followers","following_url":"https://api.github.com/users/quickwords/following{/other_user}","gists_url":"https://api.github.com/users/quickwords/gists{/gist_id}","starred_url":"https://api.github.com/users/quickwords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quickwords/subscriptions","organizations_url":"https://api.github.com/users/quickwords/orgs","repos_url":"https://api.github.com/users/quickwords/repos","events_url":"https://api.github.com/users/quickwords/events{/privacy}","received_events_url":"https://api.github.com/users/quickwords/received_events","type":"Organization","site_admin":false},"repo":{"id":123592032,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM1OTIwMzI=","name":"quickwords","full_name":"quickwords/quickwords","private":false,"owner":{"login":"quickwords","id":36318302,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MzE4MzAy","avatar_url":"https://avatars3.githubusercontent.com/u/36318302?v=4","gravatar_id":"","url":"https://api.github.com/users/quickwords","html_url":"https://github.com/quickwords","followers_url":"https://api.github.com/users/quickwords/followers","following_url":"https://api.github.com/users/quickwords/following{/other_user}","gists_url":"https://api.github.com/users/quickwords/gists{/gist_id}","starred_url":"https://api.github.com/users/quickwords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quickwords/subscriptions","organizations_url":"https://api.github.com/users/quickwords/orgs","repos_url":"https://api.github.com/users/quickwords/repos","events_url":"https://api.github.com/users/quickwords/events{/privacy}","received_events_url":"https://api.github.com/users/quickwords/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/quickwords/quickwords","description":"Quickwords is a productivity app, to get on with your work quicker.","fork":false,"url":"https://api.github.com/repos/quickwords/quickwords","forks_url":"https://api.github.com/repos/quickwords/quickwords/forks","keys_url":"https://api.github.com/repos/quickwords/quickwords/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quickwords/quickwords/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quickwords/quickwords/teams","hooks_url":"https://api.github.com/repos/quickwords/quickwords/hooks","issue_events_url":"https://api.github.com/repos/quickwords/quickwords/issues/events{/number}","events_url":"https://api.github.com/repos/quickwords/quickwords/events","assignees_url":"https://api.github.com/repos/quickwords/quickwords/assignees{/user}","branches_url":"https://api.github.com/repos/quickwords/quickwords/branches{/branch}","tags_url":"https://api.github.com/repos/quickwords/quickwords/tags","blobs_url":"https://api.github.com/repos/quickwords/quickwords/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quickwords/quickwords/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quickwords/quickwords/git/refs{/sha}","trees_url":"https://api.github.com/repos/quickwords/quickwords/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quickwords/quickwords/statuses/{sha}","languages_url":"https://api.github.com/repos/quickwords/quickwords/languages","stargazers_url":"https://api.github.com/repos/quickwords/quickwords/stargazers","contributors_url":"https://api.github.com/repos/quickwords/quickwords/contributors","subscribers_url":"https://api.github.com/repos/quickwords/quickwords/subscribers","subscription_url":"https://api.github.com/repos/quickwords/quickwords/subscription","commits_url":"https://api.github.com/repos/quickwords/quickwords/commits{/sha}","git_commits_url":"https://api.github.com/repos/quickwords/quickwords/git/commits{/sha}","comments_url":"https://api.github.com/repos/quickwords/quickwords/comments{/number}","issue_comment_url":"https://api.github.com/repos/quickwords/quickwords/issues/comments{/number}","contents_url":"https://api.github.com/repos/quickwords/quickwords/contents/{+path}","compare_url":"https://api.github.com/repos/quickwords/quickwords/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quickwords/quickwords/merges","archive_url":"https://api.github.com/repos/quickwords/quickwords/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quickwords/quickwords/downloads","issues_url":"https://api.github.com/repos/quickwords/quickwords/issues{/number}","pulls_url":"https://api.github.com/repos/quickwords/quickwords/pulls{/number}","milestones_url":"https://api.github.com/repos/quickwords/quickwords/milestones{/number}","notifications_url":"https://api.github.com/repos/quickwords/quickwords/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quickwords/quickwords/labels{/name}","releases_url":"https://api.github.com/repos/quickwords/quickwords/releases{/id}","deployments_url":"https://api.github.com/repos/quickwords/quickwords/deployments","created_at":"2018-03-02T14:53:58Z","updated_at":"2018-10-01T08:52:07Z","pushed_at":"2018-10-01T16:34:21Z","git_url":"git://github.com/quickwords/quickwords.git","ssh_url":"git@github.com:quickwords/quickwords.git","clone_url":"https://github.com/quickwords/quickwords.git","svn_url":"https://github.com/quickwords/quickwords","homepage":"https://quickwords.co","size":3187,"stargazers_count":48,"watchers_count":48,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":4,"watchers":48,"default_branch":"master"}},"base":{"label":"quickwords:master","ref":"master","sha":"351e0be2c33605deec8703ea3410d9e1790ddb96","user":{"login":"quickwords","id":36318302,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MzE4MzAy","avatar_url":"https://avatars3.githubusercontent.com/u/36318302?v=4","gravatar_id":"","url":"https://api.github.com/users/quickwords","html_url":"https://github.com/quickwords","followers_url":"https://api.github.com/users/quickwords/followers","following_url":"https://api.github.com/users/quickwords/following{/other_user}","gists_url":"https://api.github.com/users/quickwords/gists{/gist_id}","starred_url":"https://api.github.com/users/quickwords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quickwords/subscriptions","organizations_url":"https://api.github.com/users/quickwords/orgs","repos_url":"https://api.github.com/users/quickwords/repos","events_url":"https://api.github.com/users/quickwords/events{/privacy}","received_events_url":"https://api.github.com/users/quickwords/received_events","type":"Organization","site_admin":false},"repo":{"id":123592032,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM1OTIwMzI=","name":"quickwords","full_name":"quickwords/quickwords","private":false,"owner":{"login":"quickwords","id":36318302,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MzE4MzAy","avatar_url":"https://avatars3.githubusercontent.com/u/36318302?v=4","gravatar_id":"","url":"https://api.github.com/users/quickwords","html_url":"https://github.com/quickwords","followers_url":"https://api.github.com/users/quickwords/followers","following_url":"https://api.github.com/users/quickwords/following{/other_user}","gists_url":"https://api.github.com/users/quickwords/gists{/gist_id}","starred_url":"https://api.github.com/users/quickwords/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quickwords/subscriptions","organizations_url":"https://api.github.com/users/quickwords/orgs","repos_url":"https://api.github.com/users/quickwords/repos","events_url":"https://api.github.com/users/quickwords/events{/privacy}","received_events_url":"https://api.github.com/users/quickwords/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/quickwords/quickwords","description":"Quickwords is a productivity app, to get on with your work quicker.","fork":false,"url":"https://api.github.com/repos/quickwords/quickwords","forks_url":"https://api.github.com/repos/quickwords/quickwords/forks","keys_url":"https://api.github.com/repos/quickwords/quickwords/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quickwords/quickwords/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quickwords/quickwords/teams","hooks_url":"https://api.github.com/repos/quickwords/quickwords/hooks","issue_events_url":"https://api.github.com/repos/quickwords/quickwords/issues/events{/number}","events_url":"https://api.github.com/repos/quickwords/quickwords/events","assignees_url":"https://api.github.com/repos/quickwords/quickwords/assignees{/user}","branches_url":"https://api.github.com/repos/quickwords/quickwords/branches{/branch}","tags_url":"https://api.github.com/repos/quickwords/quickwords/tags","blobs_url":"https://api.github.com/repos/quickwords/quickwords/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quickwords/quickwords/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quickwords/quickwords/git/refs{/sha}","trees_url":"https://api.github.com/repos/quickwords/quickwords/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quickwords/quickwords/statuses/{sha}","languages_url":"https://api.github.com/repos/quickwords/quickwords/languages","stargazers_url":"https://api.github.com/repos/quickwords/quickwords/stargazers","contributors_url":"https://api.github.com/repos/quickwords/quickwords/contributors","subscribers_url":"https://api.github.com/repos/quickwords/quickwords/subscribers","subscription_url":"https://api.github.com/repos/quickwords/quickwords/subscription","commits_url":"https://api.github.com/repos/quickwords/quickwords/commits{/sha}","git_commits_url":"https://api.github.com/repos/quickwords/quickwords/git/commits{/sha}","comments_url":"https://api.github.com/repos/quickwords/quickwords/comments{/number}","issue_comment_url":"https://api.github.com/repos/quickwords/quickwords/issues/comments{/number}","contents_url":"https://api.github.com/repos/quickwords/quickwords/contents/{+path}","compare_url":"https://api.github.com/repos/quickwords/quickwords/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quickwords/quickwords/merges","archive_url":"https://api.github.com/repos/quickwords/quickwords/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quickwords/quickwords/downloads","issues_url":"https://api.github.com/repos/quickwords/quickwords/issues{/number}","pulls_url":"https://api.github.com/repos/quickwords/quickwords/pulls{/number}","milestones_url":"https://api.github.com/repos/quickwords/quickwords/milestones{/number}","notifications_url":"https://api.github.com/repos/quickwords/quickwords/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quickwords/quickwords/labels{/name}","releases_url":"https://api.github.com/repos/quickwords/quickwords/releases{/id}","deployments_url":"https://api.github.com/repos/quickwords/quickwords/deployments","created_at":"2018-03-02T14:53:58Z","updated_at":"2018-10-01T08:52:07Z","pushed_at":"2018-10-01T16:34:21Z","git_url":"git://github.com/quickwords/quickwords.git","ssh_url":"git@github.com:quickwords/quickwords.git","clone_url":"https://github.com/quickwords/quickwords.git","svn_url":"https://github.com/quickwords/quickwords","homepage":"https://quickwords.co","size":3187,"stargazers_count":48,"watchers_count":48,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":4,"watchers":48,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/quickwords/quickwords/pulls/26"},"html":{"href":"https://github.com/quickwords/quickwords/pull/26"},"issue":{"href":"https://api.github.com/repos/quickwords/quickwords/issues/26"},"comments":{"href":"https://api.github.com/repos/quickwords/quickwords/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/quickwords/quickwords/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/quickwords/quickwords/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/quickwords/quickwords/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/quickwords/quickwords/statuses/723aaac88ddf094bd2421e23e499887a19c7c101"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"houndci-bot"}}