{"action":"created","comment":{"url":"https://api.github.com/repos/ngx-lib/multiselect/pulls/comments/242637636","pull_request_review_id":186197542,"id":242637636,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjYzNzYzNg==","diff_hunk":"@@ -81,13 +143,60 @@ describe('OptionsComponent', () => {\n     // arrange\n     // act\n     // assert\n-    expect(true).toBeTruthy();\n+    expect(component.optionsTemplate).toBe(component.defaultOptionsTemplate);\n   })\n \n+  // TODO: find a way to pass a template to component\n   it('if new item template is passed then it should be rendered on screen', () => {\n     // arrange\n     // act\n     // assert\n     expect(true).toBeTruthy();\n   })\n+\n+  describe('Single select', () => {\n+    beforeEach(() => {\n+      multiselect.multiple = false;\n+      multiselect.isOpen = true;\n+      fixture.detectChanges();\n+    })\n+\n+    it('list should close based on option selection', () => {\n+      // arrange\n+      const optionsElements = debugElement.queryAll(By.css('.option'));\n+      // act\n+      optionsElements[1].triggerEventHandler('click', null);\n+      fixture.detectChanges();\n+      // assert\n+      const markedOptions = debugElement.queryAll(By.css('.option.marked'));\n+      console.log(markedOptions);","path":"projects/multiselect/src/lib/options/options.component.spec.ts","position":173,"original_position":173,"commit_id":"2cca8d0c2c75608c65701ba2bfb6034459a9e8c4","original_commit_id":"2cca8d0c2c75608c65701ba2bfb6034459a9e8c4","user":{"login":"ngx-lib","id":45892284,"node_id":"MDQ6VXNlcjQ1ODkyMjg0","avatar_url":"https://avatars3.githubusercontent.com/u/45892284?v=4","gravatar_id":"","url":"https://api.github.com/users/ngx-lib","html_url":"https://github.com/ngx-lib","followers_url":"https://api.github.com/users/ngx-lib/followers","following_url":"https://api.github.com/users/ngx-lib/following{/other_user}","gists_url":"https://api.github.com/users/ngx-lib/gists{/gist_id}","starred_url":"https://api.github.com/users/ngx-lib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngx-lib/subscriptions","organizations_url":"https://api.github.com/users/ngx-lib/orgs","repos_url":"https://api.github.com/users/ngx-lib/repos","events_url":"https://api.github.com/users/ngx-lib/events{/privacy}","received_events_url":"https://api.github.com/users/ngx-lib/received_events","type":"User","site_admin":false},"body":"Remove `console.log`","created_at":"2018-12-18T17:45:33Z","updated_at":"2018-12-18T17:45:33Z","html_url":"https://github.com/ngx-lib/multiselect/pull/8#discussion_r242637636","pull_request_url":"https://api.github.com/repos/ngx-lib/multiselect/pulls/8","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/ngx-lib/multiselect/pulls/comments/242637636"},"html":{"href":"https://github.com/ngx-lib/multiselect/pull/8#discussion_r242637636"},"pull_request":{"href":"https://api.github.com/repos/ngx-lib/multiselect/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/ngx-lib/multiselect/pulls/8","id":239569473,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5NTY5NDcz","html_url":"https://github.com/ngx-lib/multiselect/pull/8","diff_url":"https://github.com/ngx-lib/multiselect/pull/8.diff","patch_url":"https://github.com/ngx-lib/multiselect/pull/8.patch","issue_url":"https://api.github.com/repos/ngx-lib/multiselect/issues/8","number":8,"state":"open","locked":false,"title":"completed options component test cases","user":{"login":"nitinkalenk","id":19928610,"node_id":"MDQ6VXNlcjE5OTI4NjEw","avatar_url":"https://avatars0.githubusercontent.com/u/19928610?v=4","gravatar_id":"","url":"https://api.github.com/users/nitinkalenk","html_url":"https://github.com/nitinkalenk","followers_url":"https://api.github.com/users/nitinkalenk/followers","following_url":"https://api.github.com/users/nitinkalenk/following{/other_user}","gists_url":"https://api.github.com/users/nitinkalenk/gists{/gist_id}","starred_url":"https://api.github.com/users/nitinkalenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitinkalenk/subscriptions","organizations_url":"https://api.github.com/users/nitinkalenk/orgs","repos_url":"https://api.github.com/users/nitinkalenk/repos","events_url":"https://api.github.com/users/nitinkalenk/events{/privacy}","received_events_url":"https://api.github.com/users/nitinkalenk/received_events","type":"User","site_admin":false},"body":"Added test cases for options component ","created_at":"2018-12-18T17:21:33Z","updated_at":"2018-12-18T17:45:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a34ea6b46891989200a816b3be4d8e9456ccc870","assignee":null,"assignees":[],"requested_reviewers":[{"login":"pankajparkar","id":5320044,"node_id":"MDQ6VXNlcjUzMjAwNDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5320044?v=4","gravatar_id":"","url":"https://api.github.com/users/pankajparkar","html_url":"https://github.com/pankajparkar","followers_url":"https://api.github.com/users/pankajparkar/followers","following_url":"https://api.github.com/users/pankajparkar/following{/other_user}","gists_url":"https://api.github.com/users/pankajparkar/gists{/gist_id}","starred_url":"https://api.github.com/users/pankajparkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pankajparkar/subscriptions","organizations_url":"https://api.github.com/users/pankajparkar/orgs","repos_url":"https://api.github.com/users/pankajparkar/repos","events_url":"https://api.github.com/users/pankajparkar/events{/privacy}","received_events_url":"https://api.github.com/users/pankajparkar/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ngx-lib/multiselect/pulls/8/commits","review_comments_url":"https://api.github.com/repos/ngx-lib/multiselect/pulls/8/comments","review_comment_url":"https://api.github.com/repos/ngx-lib/multiselect/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ngx-lib/multiselect/issues/8/comments","statuses_url":"https://api.github.com/repos/ngx-lib/multiselect/statuses/2cca8d0c2c75608c65701ba2bfb6034459a9e8c4","head":{"label":"ngx-lib:feature/options-component-test-cases","ref":"feature/options-component-test-cases","sha":"2cca8d0c2c75608c65701ba2bfb6034459a9e8c4","user":{"login":"ngx-lib","id":45892284,"node_id":"MDQ6VXNlcjQ1ODkyMjg0","avatar_url":"https://avatars3.githubusercontent.com/u/45892284?v=4","gravatar_id":"","url":"https://api.github.com/users/ngx-lib","html_url":"https://github.com/ngx-lib","followers_url":"https://api.github.com/users/ngx-lib/followers","following_url":"https://api.github.com/users/ngx-lib/following{/other_user}","gists_url":"https://api.github.com/users/ngx-lib/gists{/gist_id}","starred_url":"https://api.github.com/users/ngx-lib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngx-lib/subscriptions","organizations_url":"https://api.github.com/users/ngx-lib/orgs","repos_url":"https://api.github.com/users/ngx-lib/repos","events_url":"https://api.github.com/users/ngx-lib/events{/privacy}","received_events_url":"https://api.github.com/users/ngx-lib/received_events","type":"User","site_admin":false},"repo":{"id":161884975,"node_id":"MDEwOlJlcG9zaXRvcnkxNjE4ODQ5NzU=","name":"multiselect","full_name":"ngx-lib/multiselect","private":false,"owner":{"login":"ngx-lib","id":45892284,"node_id":"MDQ6VXNlcjQ1ODkyMjg0","avatar_url":"https://avatars3.githubusercontent.com/u/45892284?v=4","gravatar_id":"","url":"https://api.github.com/users/ngx-lib","html_url":"https://github.com/ngx-lib","followers_url":"https://api.github.com/users/ngx-lib/followers","following_url":"https://api.github.com/users/ngx-lib/following{/other_user}","gists_url":"https://api.github.com/users/ngx-lib/gists{/gist_id}","starred_url":"https://api.github.com/users/ngx-lib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngx-lib/subscriptions","organizations_url":"https://api.github.com/users/ngx-lib/orgs","repos_url":"https://api.github.com/users/ngx-lib/repos","events_url":"https://api.github.com/users/ngx-lib/events{/privacy}","received_events_url":"https://api.github.com/users/ngx-lib/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ngx-lib/multiselect","description":"Angular Multiselect","fork":false,"url":"https://api.github.com/repos/ngx-lib/multiselect","forks_url":"https://api.github.com/repos/ngx-lib/multiselect/forks","keys_url":"https://api.github.com/repos/ngx-lib/multiselect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ngx-lib/multiselect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ngx-lib/multiselect/teams","hooks_url":"https://api.github.com/repos/ngx-lib/multiselect/hooks","issue_events_url":"https://api.github.com/repos/ngx-lib/multiselect/issues/events{/number}","events_url":"https://api.github.com/repos/ngx-lib/multiselect/events","assignees_url":"https://api.github.com/repos/ngx-lib/multiselect/assignees{/user}","branches_url":"https://api.github.com/repos/ngx-lib/multiselect/branches{/branch}","tags_url":"https://api.github.com/repos/ngx-lib/multiselect/tags","blobs_url":"https://api.github.com/repos/ngx-lib/multiselect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ngx-lib/multiselect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ngx-lib/multiselect/git/refs{/sha}","trees_url":"https://api.github.com/repos/ngx-lib/multiselect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ngx-lib/multiselect/statuses/{sha}","languages_url":"https://api.github.com/repos/ngx-lib/multiselect/languages","stargazers_url":"https://api.github.com/repos/ngx-lib/multiselect/stargazers","contributors_url":"https://api.github.com/repos/ngx-lib/multiselect/contributors","subscribers_url":"https://api.github.com/repos/ngx-lib/multiselect/subscribers","subscription_url":"https://api.github.com/repos/ngx-lib/multiselect/subscription","commits_url":"https://api.github.com/repos/ngx-lib/multiselect/commits{/sha}","git_commits_url":"https://api.github.com/repos/ngx-lib/multiselect/git/commits{/sha}","comments_url":"https://api.github.com/repos/ngx-lib/multiselect/comments{/number}","issue_comment_url":"https://api.github.com/repos/ngx-lib/multiselect/issues/comments{/number}","contents_url":"https://api.github.com/repos/ngx-lib/multiselect/contents/{+path}","compare_url":"https://api.github.com/repos/ngx-lib/multiselect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ngx-lib/multiselect/merges","archive_url":"https://api.github.com/repos/ngx-lib/multiselect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ngx-lib/multiselect/downloads","issues_url":"https://api.github.com/repos/ngx-lib/multiselect/issues{/number}","pulls_url":"https://api.github.com/repos/ngx-lib/multiselect/pulls{/number}","milestones_url":"https://api.github.com/repos/ngx-lib/multiselect/milestones{/number}","notifications_url":"https://api.github.com/repos/ngx-lib/multiselect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ngx-lib/multiselect/labels{/name}","releases_url":"https://api.github.com/repos/ngx-lib/multiselect/releases{/id}","deployments_url":"https://api.github.com/repos/ngx-lib/multiselect/deployments","created_at":"2018-12-15T08:20:24Z","updated_at":"2018-12-16T17:20:56Z","pushed_at":"2018-12-18T17:21:34Z","git_url":"git://github.com/ngx-lib/multiselect.git","ssh_url":"git@github.com:ngx-lib/multiselect.git","clone_url":"https://github.com/ngx-lib/multiselect.git","svn_url":"https://github.com/ngx-lib/multiselect","homepage":null,"size":462,"stargazers_count":4,"watchers_count":4,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"ngx-lib:master","ref":"master","sha":"49952c989ce525fcb5e66d5f8664ce1d276fb800","user":{"login":"ngx-lib","id":45892284,"node_id":"MDQ6VXNlcjQ1ODkyMjg0","avatar_url":"https://avatars3.githubusercontent.com/u/45892284?v=4","gravatar_id":"","url":"https://api.github.com/users/ngx-lib","html_url":"https://github.com/ngx-lib","followers_url":"https://api.github.com/users/ngx-lib/followers","following_url":"https://api.github.com/users/ngx-lib/following{/other_user}","gists_url":"https://api.github.com/users/ngx-lib/gists{/gist_id}","starred_url":"https://api.github.com/users/ngx-lib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngx-lib/subscriptions","organizations_url":"https://api.github.com/users/ngx-lib/orgs","repos_url":"https://api.github.com/users/ngx-lib/repos","events_url":"https://api.github.com/users/ngx-lib/events{/privacy}","received_events_url":"https://api.github.com/users/ngx-lib/received_events","type":"User","site_admin":false},"repo":{"id":161884975,"node_id":"MDEwOlJlcG9zaXRvcnkxNjE4ODQ5NzU=","name":"multiselect","full_name":"ngx-lib/multiselect","private":false,"owner":{"login":"ngx-lib","id":45892284,"node_id":"MDQ6VXNlcjQ1ODkyMjg0","avatar_url":"https://avatars3.githubusercontent.com/u/45892284?v=4","gravatar_id":"","url":"https://api.github.com/users/ngx-lib","html_url":"https://github.com/ngx-lib","followers_url":"https://api.github.com/users/ngx-lib/followers","following_url":"https://api.github.com/users/ngx-lib/following{/other_user}","gists_url":"https://api.github.com/users/ngx-lib/gists{/gist_id}","starred_url":"https://api.github.com/users/ngx-lib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngx-lib/subscriptions","organizations_url":"https://api.github.com/users/ngx-lib/orgs","repos_url":"https://api.github.com/users/ngx-lib/repos","events_url":"https://api.github.com/users/ngx-lib/events{/privacy}","received_events_url":"https://api.github.com/users/ngx-lib/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ngx-lib/multiselect","description":"Angular Multiselect","fork":false,"url":"https://api.github.com/repos/ngx-lib/multiselect","forks_url":"https://api.github.com/repos/ngx-lib/multiselect/forks","keys_url":"https://api.github.com/repos/ngx-lib/multiselect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ngx-lib/multiselect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ngx-lib/multiselect/teams","hooks_url":"https://api.github.com/repos/ngx-lib/multiselect/hooks","issue_events_url":"https://api.github.com/repos/ngx-lib/multiselect/issues/events{/number}","events_url":"https://api.github.com/repos/ngx-lib/multiselect/events","assignees_url":"https://api.github.com/repos/ngx-lib/multiselect/assignees{/user}","branches_url":"https://api.github.com/repos/ngx-lib/multiselect/branches{/branch}","tags_url":"https://api.github.com/repos/ngx-lib/multiselect/tags","blobs_url":"https://api.github.com/repos/ngx-lib/multiselect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ngx-lib/multiselect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ngx-lib/multiselect/git/refs{/sha}","trees_url":"https://api.github.com/repos/ngx-lib/multiselect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ngx-lib/multiselect/statuses/{sha}","languages_url":"https://api.github.com/repos/ngx-lib/multiselect/languages","stargazers_url":"https://api.github.com/repos/ngx-lib/multiselect/stargazers","contributors_url":"https://api.github.com/repos/ngx-lib/multiselect/contributors","subscribers_url":"https://api.github.com/repos/ngx-lib/multiselect/subscribers","subscription_url":"https://api.github.com/repos/ngx-lib/multiselect/subscription","commits_url":"https://api.github.com/repos/ngx-lib/multiselect/commits{/sha}","git_commits_url":"https://api.github.com/repos/ngx-lib/multiselect/git/commits{/sha}","comments_url":"https://api.github.com/repos/ngx-lib/multiselect/comments{/number}","issue_comment_url":"https://api.github.com/repos/ngx-lib/multiselect/issues/comments{/number}","contents_url":"https://api.github.com/repos/ngx-lib/multiselect/contents/{+path}","compare_url":"https://api.github.com/repos/ngx-lib/multiselect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ngx-lib/multiselect/merges","archive_url":"https://api.github.com/repos/ngx-lib/multiselect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ngx-lib/multiselect/downloads","issues_url":"https://api.github.com/repos/ngx-lib/multiselect/issues{/number}","pulls_url":"https://api.github.com/repos/ngx-lib/multiselect/pulls{/number}","milestones_url":"https://api.github.com/repos/ngx-lib/multiselect/milestones{/number}","notifications_url":"https://api.github.com/repos/ngx-lib/multiselect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ngx-lib/multiselect/labels{/name}","releases_url":"https://api.github.com/repos/ngx-lib/multiselect/releases{/id}","deployments_url":"https://api.github.com/repos/ngx-lib/multiselect/deployments","created_at":"2018-12-15T08:20:24Z","updated_at":"2018-12-16T17:20:56Z","pushed_at":"2018-12-18T17:21:34Z","git_url":"git://github.com/ngx-lib/multiselect.git","ssh_url":"git@github.com:ngx-lib/multiselect.git","clone_url":"https://github.com/ngx-lib/multiselect.git","svn_url":"https://github.com/ngx-lib/multiselect","homepage":null,"size":462,"stargazers_count":4,"watchers_count":4,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ngx-lib/multiselect/pulls/8"},"html":{"href":"https://github.com/ngx-lib/multiselect/pull/8"},"issue":{"href":"https://api.github.com/repos/ngx-lib/multiselect/issues/8"},"comments":{"href":"https://api.github.com/repos/ngx-lib/multiselect/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/ngx-lib/multiselect/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/ngx-lib/multiselect/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ngx-lib/multiselect/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/ngx-lib/multiselect/statuses/2cca8d0c2c75608c65701ba2bfb6034459a9e8c4"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ngx-lib"}}