{"action":"created","comment":{"url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/pulls/comments/86735344","pull_request_review_id":7377152,"id":86735344,"diff_hunk":"@@ -126,4 +127,43 @@ describe('sensor-detail', () => {\n         sut.cancel();\n         expect(router.navigate).toHaveBeenCalledWith(['/devices']);\n     });\n+\n+    it('should not allow both executor and servo to be checked at one time (servo changed)', (done) => {\n+        const sensorMock = new Sensor({\n+            servo: true,\n+            executor: true\n+        });\n+\n+        sut.sensor = sensorMock;\n+        sut.needUpdate = true;\n+        sut.validate('servo');\n+        expect(sut.sensor.executor).toBe(false);\n+        done();\n+    });\n+\n+    it('should not allow both executor and servo to be checked at one time (executor changed)', (done) => {\n+        const sensorMock = new Sensor({\n+            servo: true,\n+            executor: true\n+        });\n+\n+        sut.sensor = sensorMock;\n+        sut.needUpdate = true;\n+        sut.validate('executor');\n+        expect(sut.sensor.servo).toBe(false);\n+        done();","path":"src/app/devices/sensor-details/sensor-detail.component.test.ts","position":null,"original_position":36,"commit_id":"b34476821a09c674c5e6453537ac03a26d4f470d","original_commit_id":"0f33e5a494fe35f56179e6ed072cd5e1220a1e1b","user":{"login":"Appius","id":5452634,"avatar_url":"https://avatars.githubusercontent.com/u/5452634?v=3","gravatar_id":"","url":"https://api.github.com/users/Appius","html_url":"https://github.com/Appius","followers_url":"https://api.github.com/users/Appius/followers","following_url":"https://api.github.com/users/Appius/following{/other_user}","gists_url":"https://api.github.com/users/Appius/gists{/gist_id}","starred_url":"https://api.github.com/users/Appius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Appius/subscriptions","organizations_url":"https://api.github.com/users/Appius/orgs","repos_url":"https://api.github.com/users/Appius/repos","events_url":"https://api.github.com/users/Appius/events{/privacy}","received_events_url":"https://api.github.com/users/Appius/received_events","type":"User","site_admin":false},"body":"!fixed","created_at":"2016-11-07T09:17:29Z","updated_at":"2016-11-07T09:17:29Z","html_url":"https://github.com/garage-it/SmartHouse-frontend/pull/130#discussion_r86735344","pull_request_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/pulls/130","_links":{"self":{"href":"https://api.github.com/repos/garage-it/SmartHouse-frontend/pulls/comments/86735344"},"html":{"href":"https://github.com/garage-it/SmartHouse-frontend/pull/130#discussion_r86735344"},"pull_request":{"href":"https://api.github.com/repos/garage-it/SmartHouse-frontend/pulls/130"}}},"pull_request":{"url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/pulls/130","id":92481108,"html_url":"https://github.com/garage-it/SmartHouse-frontend/pull/130","diff_url":"https://github.com/garage-it/SmartHouse-frontend/pull/130.diff","patch_url":"https://github.com/garage-it/SmartHouse-frontend/pull/130.patch","issue_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/issues/130","number":130,"state":"open","locked":false,"title":"[TG-236] [fix] Added missing chkbox","user":{"login":"Appius","id":5452634,"avatar_url":"https://avatars.githubusercontent.com/u/5452634?v=3","gravatar_id":"","url":"https://api.github.com/users/Appius","html_url":"https://github.com/Appius","followers_url":"https://api.github.com/users/Appius/followers","following_url":"https://api.github.com/users/Appius/following{/other_user}","gists_url":"https://api.github.com/users/Appius/gists{/gist_id}","starred_url":"https://api.github.com/users/Appius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Appius/subscriptions","organizations_url":"https://api.github.com/users/Appius/orgs","repos_url":"https://api.github.com/users/Appius/repos","events_url":"https://api.github.com/users/Appius/events{/privacy}","received_events_url":"https://api.github.com/users/Appius/received_events","type":"User","site_admin":false},"body":"- Added \"servo\" checkbox to add/edit device page.\r\n- Minor fixes:\r\n   - Renamed .css file to .scss;\r\n   - Fix wrongly referenced labels on the page.","created_at":"2016-11-06T09:53:29Z","updated_at":"2016-11-07T09:17:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2dd00524453ce40cb335f292fc3414e80553a93","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/pulls/130/commits","review_comments_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/pulls/130/comments","review_comment_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/issues/130/comments","statuses_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/statuses/b34476821a09c674c5e6453537ac03a26d4f470d","head":{"label":"garage-it:bug/TG-236_added_missing_chkbox","ref":"bug/TG-236_added_missing_chkbox","sha":"b34476821a09c674c5e6453537ac03a26d4f470d","user":{"login":"garage-it","id":17927734,"avatar_url":"https://avatars.githubusercontent.com/u/17927734?v=3","gravatar_id":"","url":"https://api.github.com/users/garage-it","html_url":"https://github.com/garage-it","followers_url":"https://api.github.com/users/garage-it/followers","following_url":"https://api.github.com/users/garage-it/following{/other_user}","gists_url":"https://api.github.com/users/garage-it/gists{/gist_id}","starred_url":"https://api.github.com/users/garage-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garage-it/subscriptions","organizations_url":"https://api.github.com/users/garage-it/orgs","repos_url":"https://api.github.com/users/garage-it/repos","events_url":"https://api.github.com/users/garage-it/events{/privacy}","received_events_url":"https://api.github.com/users/garage-it/received_events","type":"Organization","site_admin":false},"repo":{"id":54199806,"name":"SmartHouse-frontend","full_name":"garage-it/SmartHouse-frontend","owner":{"login":"garage-it","id":17927734,"avatar_url":"https://avatars.githubusercontent.com/u/17927734?v=3","gravatar_id":"","url":"https://api.github.com/users/garage-it","html_url":"https://github.com/garage-it","followers_url":"https://api.github.com/users/garage-it/followers","following_url":"https://api.github.com/users/garage-it/following{/other_user}","gists_url":"https://api.github.com/users/garage-it/gists{/gist_id}","starred_url":"https://api.github.com/users/garage-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garage-it/subscriptions","organizations_url":"https://api.github.com/users/garage-it/orgs","repos_url":"https://api.github.com/users/garage-it/repos","events_url":"https://api.github.com/users/garage-it/events{/privacy}","received_events_url":"https://api.github.com/users/garage-it/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/garage-it/SmartHouse-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/garage-it/SmartHouse-frontend","forks_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/forks","keys_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/teams","hooks_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/hooks","issue_events_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/events","assignees_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/tags","blobs_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/languages","stargazers_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/stargazers","contributors_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/contributors","subscribers_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/subscribers","subscription_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/subscription","commits_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/merges","archive_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/downloads","issues_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/labels{/name}","releases_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/deployments","created_at":"2016-03-18T12:34:07Z","updated_at":"2016-11-04T10:58:57Z","pushed_at":"2016-11-07T09:10:14Z","git_url":"git://github.com/garage-it/SmartHouse-frontend.git","ssh_url":"git@github.com:garage-it/SmartHouse-frontend.git","clone_url":"https://github.com/garage-it/SmartHouse-frontend.git","svn_url":"https://github.com/garage-it/SmartHouse-frontend","homepage":null,"size":588,"stargazers_count":15,"watchers_count":15,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":15,"default_branch":"master"}},"base":{"label":"garage-it:master","ref":"master","sha":"a6a379d6510789906b8147949ac412ae728c5f26","user":{"login":"garage-it","id":17927734,"avatar_url":"https://avatars.githubusercontent.com/u/17927734?v=3","gravatar_id":"","url":"https://api.github.com/users/garage-it","html_url":"https://github.com/garage-it","followers_url":"https://api.github.com/users/garage-it/followers","following_url":"https://api.github.com/users/garage-it/following{/other_user}","gists_url":"https://api.github.com/users/garage-it/gists{/gist_id}","starred_url":"https://api.github.com/users/garage-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garage-it/subscriptions","organizations_url":"https://api.github.com/users/garage-it/orgs","repos_url":"https://api.github.com/users/garage-it/repos","events_url":"https://api.github.com/users/garage-it/events{/privacy}","received_events_url":"https://api.github.com/users/garage-it/received_events","type":"Organization","site_admin":false},"repo":{"id":54199806,"name":"SmartHouse-frontend","full_name":"garage-it/SmartHouse-frontend","owner":{"login":"garage-it","id":17927734,"avatar_url":"https://avatars.githubusercontent.com/u/17927734?v=3","gravatar_id":"","url":"https://api.github.com/users/garage-it","html_url":"https://github.com/garage-it","followers_url":"https://api.github.com/users/garage-it/followers","following_url":"https://api.github.com/users/garage-it/following{/other_user}","gists_url":"https://api.github.com/users/garage-it/gists{/gist_id}","starred_url":"https://api.github.com/users/garage-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garage-it/subscriptions","organizations_url":"https://api.github.com/users/garage-it/orgs","repos_url":"https://api.github.com/users/garage-it/repos","events_url":"https://api.github.com/users/garage-it/events{/privacy}","received_events_url":"https://api.github.com/users/garage-it/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/garage-it/SmartHouse-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/garage-it/SmartHouse-frontend","forks_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/forks","keys_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/teams","hooks_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/hooks","issue_events_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/events","assignees_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/tags","blobs_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/languages","stargazers_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/stargazers","contributors_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/contributors","subscribers_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/subscribers","subscription_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/subscription","commits_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/merges","archive_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/downloads","issues_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/labels{/name}","releases_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/garage-it/SmartHouse-frontend/deployments","created_at":"2016-03-18T12:34:07Z","updated_at":"2016-11-04T10:58:57Z","pushed_at":"2016-11-07T09:10:14Z","git_url":"git://github.com/garage-it/SmartHouse-frontend.git","ssh_url":"git@github.com:garage-it/SmartHouse-frontend.git","clone_url":"https://github.com/garage-it/SmartHouse-frontend.git","svn_url":"https://github.com/garage-it/SmartHouse-frontend","homepage":null,"size":588,"stargazers_count":15,"watchers_count":15,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/garage-it/SmartHouse-frontend/pulls/130"},"html":{"href":"https://github.com/garage-it/SmartHouse-frontend/pull/130"},"issue":{"href":"https://api.github.com/repos/garage-it/SmartHouse-frontend/issues/130"},"comments":{"href":"https://api.github.com/repos/garage-it/SmartHouse-frontend/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/garage-it/SmartHouse-frontend/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/garage-it/SmartHouse-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/garage-it/SmartHouse-frontend/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/garage-it/SmartHouse-frontend/statuses/b34476821a09c674c5e6453537ac03a26d4f470d"}}}}
{"actor":{"display_login":"Appius"}}