{"action":"created","comment":{"url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/pulls/comments/181110137","pull_request_review_id":111656420,"id":181110137,"diff_hunk":"@@ -25,28 +25,56 @@ it(\"verifies that authenticationInfo is passed to Body component\", () => {\n     .authenticationInfo;\n \n   // Verify that Body recieves authenticationInfo property\n-  const authenticationInfoProp = wrapper\n-    .find(\"Body\")\n-    .prop(\"authenticationInfo\");\n-  expect(authenticationInfoProp).toBe(originalAuthenticationInfo);\n+  expect(Object.keys(wrapper.find(\"Body\").props()).length).toBe(1);\n+  expect(wrapper.find(\"Body\").prop(\"authenticationInfo\")).toBe(\n+    originalAuthenticationInfo\n+  );\n });\n \n-it(\"verifies that updateAuthenticationInfo function is passed to Header component\", () => {\n+it(\"verifies that props are passed to Header component\", () => {\n   const updateAuthenticationInfoSpy = jest.spyOn(\n     appInstance,\n     \"updateAuthenticationInfo\"\n   );\n+  const clearAuthenticationInfoSpy = jest.spyOn(\n+    appInstance,\n+    \"clearAuthenticationInfo\"\n+  );\n+  const isAuthenticationInfoValidSpy = jest.spyOn(\n+    appInstance,\n+    \"isAuthenticationInfoValid\"\n+  );\n+\n+  //Verify that Header is passed desired number of properties\n+  expect(Object.keys(app.find(\"Header\").props()).length).toBe(3);\n \n   // Verify that Header is passed on updateAuthenticationInfo property\n-  const headerUpdateAuthenticationInfoProp = app\n+  const updateAuthenticationInfoProp = app\n     .find(\"Header\")\n     .prop(\"updateAuthenticationInfo\");\n-  expect(headerUpdateAuthenticationInfoProp.length).toBe(1);\n \n   // Verify that calling prop function passed to header calls updateAuthenticationInfo\n   const dummyArgument = \"dummyArgument\";\n-  headerUpdateAuthenticationInfoProp(dummyArgument);\n+  updateAuthenticationInfoProp(dummyArgument);\n   expect(updateAuthenticationInfoSpy).toHaveBeenCalledWith(dummyArgument);\n+\n+  // Verify that Header is passed on clearAuthenticationInfo property","path":"src/App.test.js","position":45,"original_position":45,"commit_id":"5a19e2dfb1bb196d44ab43ef9fe134e2c50d2104","original_commit_id":"5a19e2dfb1bb196d44ab43ef9fe134e2c50d2104","user":{"login":"gootla-manasa","id":5608915,"avatar_url":"https://avatars1.githubusercontent.com/u/5608915?v=4","gravatar_id":"","url":"https://api.github.com/users/gootla-manasa","html_url":"https://github.com/gootla-manasa","followers_url":"https://api.github.com/users/gootla-manasa/followers","following_url":"https://api.github.com/users/gootla-manasa/following{/other_user}","gists_url":"https://api.github.com/users/gootla-manasa/gists{/gist_id}","starred_url":"https://api.github.com/users/gootla-manasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gootla-manasa/subscriptions","organizations_url":"https://api.github.com/users/gootla-manasa/orgs","repos_url":"https://api.github.com/users/gootla-manasa/repos","events_url":"https://api.github.com/users/gootla-manasa/events{/privacy}","received_events_url":"https://api.github.com/users/gootla-manasa/received_events","type":"User","site_admin":false},"body":"Updated comments all across.","created_at":"2018-04-12T14:50:39Z","updated_at":"2018-04-12T14:54:10Z","html_url":"https://github.com/s-maheshbabu/silent-alexa/pull/37#discussion_r181110137","pull_request_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/pulls/37","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/s-maheshbabu/silent-alexa/pulls/comments/181110137"},"html":{"href":"https://github.com/s-maheshbabu/silent-alexa/pull/37#discussion_r181110137"},"pull_request":{"href":"https://api.github.com/repos/s-maheshbabu/silent-alexa/pulls/37"}},"in_reply_to_id":180964651},"pull_request":{"url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/pulls/37","id":181054015,"html_url":"https://github.com/s-maheshbabu/silent-alexa/pull/37","diff_url":"https://github.com/s-maheshbabu/silent-alexa/pull/37.diff","patch_url":"https://github.com/s-maheshbabu/silent-alexa/pull/37.patch","issue_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/issues/37","number":37,"state":"open","locked":false,"title":"Added Logout button and hooked the component into Header","user":{"login":"gootla-manasa","id":5608915,"avatar_url":"https://avatars1.githubusercontent.com/u/5608915?v=4","gravatar_id":"","url":"https://api.github.com/users/gootla-manasa","html_url":"https://github.com/gootla-manasa","followers_url":"https://api.github.com/users/gootla-manasa/followers","following_url":"https://api.github.com/users/gootla-manasa/following{/other_user}","gists_url":"https://api.github.com/users/gootla-manasa/gists{/gist_id}","starred_url":"https://api.github.com/users/gootla-manasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gootla-manasa/subscriptions","organizations_url":"https://api.github.com/users/gootla-manasa/orgs","repos_url":"https://api.github.com/users/gootla-manasa/repos","events_url":"https://api.github.com/users/gootla-manasa/events{/privacy}","received_events_url":"https://api.github.com/users/gootla-manasa/received_events","type":"User","site_admin":false},"body":"Introduced conditional rendering of Login and Logout buttons based on authenticationInfo prop in the state of App component.","created_at":"2018-04-11T23:27:08Z","updated_at":"2018-04-12T14:54:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3533295a8151d8b489abb63851bba27bd6eef83","assignee":{"login":"s-maheshbabu","id":10920089,"avatar_url":"https://avatars3.githubusercontent.com/u/10920089?v=4","gravatar_id":"","url":"https://api.github.com/users/s-maheshbabu","html_url":"https://github.com/s-maheshbabu","followers_url":"https://api.github.com/users/s-maheshbabu/followers","following_url":"https://api.github.com/users/s-maheshbabu/following{/other_user}","gists_url":"https://api.github.com/users/s-maheshbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/s-maheshbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-maheshbabu/subscriptions","organizations_url":"https://api.github.com/users/s-maheshbabu/orgs","repos_url":"https://api.github.com/users/s-maheshbabu/repos","events_url":"https://api.github.com/users/s-maheshbabu/events{/privacy}","received_events_url":"https://api.github.com/users/s-maheshbabu/received_events","type":"User","site_admin":false},"assignees":[{"login":"s-maheshbabu","id":10920089,"avatar_url":"https://avatars3.githubusercontent.com/u/10920089?v=4","gravatar_id":"","url":"https://api.github.com/users/s-maheshbabu","html_url":"https://github.com/s-maheshbabu","followers_url":"https://api.github.com/users/s-maheshbabu/followers","following_url":"https://api.github.com/users/s-maheshbabu/following{/other_user}","gists_url":"https://api.github.com/users/s-maheshbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/s-maheshbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-maheshbabu/subscriptions","organizations_url":"https://api.github.com/users/s-maheshbabu/orgs","repos_url":"https://api.github.com/users/s-maheshbabu/repos","events_url":"https://api.github.com/users/s-maheshbabu/events{/privacy}","received_events_url":"https://api.github.com/users/s-maheshbabu/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/pulls/37/commits","review_comments_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/pulls/37/comments","review_comment_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/issues/37/comments","statuses_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/statuses/5a19e2dfb1bb196d44ab43ef9fe134e2c50d2104","head":{"label":"s-maheshbabu:addLogout","ref":"addLogout","sha":"5a19e2dfb1bb196d44ab43ef9fe134e2c50d2104","user":{"login":"s-maheshbabu","id":10920089,"avatar_url":"https://avatars3.githubusercontent.com/u/10920089?v=4","gravatar_id":"","url":"https://api.github.com/users/s-maheshbabu","html_url":"https://github.com/s-maheshbabu","followers_url":"https://api.github.com/users/s-maheshbabu/followers","following_url":"https://api.github.com/users/s-maheshbabu/following{/other_user}","gists_url":"https://api.github.com/users/s-maheshbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/s-maheshbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-maheshbabu/subscriptions","organizations_url":"https://api.github.com/users/s-maheshbabu/orgs","repos_url":"https://api.github.com/users/s-maheshbabu/repos","events_url":"https://api.github.com/users/s-maheshbabu/events{/privacy}","received_events_url":"https://api.github.com/users/s-maheshbabu/received_events","type":"User","site_admin":false},"repo":{"id":122009781,"name":"silent-alexa","full_name":"s-maheshbabu/silent-alexa","owner":{"login":"s-maheshbabu","id":10920089,"avatar_url":"https://avatars3.githubusercontent.com/u/10920089?v=4","gravatar_id":"","url":"https://api.github.com/users/s-maheshbabu","html_url":"https://github.com/s-maheshbabu","followers_url":"https://api.github.com/users/s-maheshbabu/followers","following_url":"https://api.github.com/users/s-maheshbabu/following{/other_user}","gists_url":"https://api.github.com/users/s-maheshbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/s-maheshbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-maheshbabu/subscriptions","organizations_url":"https://api.github.com/users/s-maheshbabu/orgs","repos_url":"https://api.github.com/users/s-maheshbabu/repos","events_url":"https://api.github.com/users/s-maheshbabu/events{/privacy}","received_events_url":"https://api.github.com/users/s-maheshbabu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/s-maheshbabu/silent-alexa","description":"A text based interface to Amazon Alexa","fork":false,"url":"https://api.github.com/repos/s-maheshbabu/silent-alexa","forks_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/forks","keys_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/teams","hooks_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/hooks","issue_events_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/issues/events{/number}","events_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/events","assignees_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/assignees{/user}","branches_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/branches{/branch}","tags_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/tags","blobs_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/git/refs{/sha}","trees_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/statuses/{sha}","languages_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/languages","stargazers_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/stargazers","contributors_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/contributors","subscribers_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/subscribers","subscription_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/subscription","commits_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/commits{/sha}","git_commits_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/git/commits{/sha}","comments_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/comments{/number}","issue_comment_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/issues/comments{/number}","contents_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/contents/{+path}","compare_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/merges","archive_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/downloads","issues_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/issues{/number}","pulls_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/pulls{/number}","milestones_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/milestones{/number}","notifications_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/labels{/name}","releases_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/releases{/id}","deployments_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/deployments","created_at":"2018-02-19T02:09:22Z","updated_at":"2018-04-11T22:19:20Z","pushed_at":"2018-04-11T23:27:08Z","git_url":"git://github.com/s-maheshbabu/silent-alexa.git","ssh_url":"git@github.com:s-maheshbabu/silent-alexa.git","clone_url":"https://github.com/s-maheshbabu/silent-alexa.git","svn_url":"https://github.com/s-maheshbabu/silent-alexa","homepage":null,"size":3139,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":1,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"s-maheshbabu:master","ref":"master","sha":"e2e977c47fbd8de265a1fa0ba708a3108a4cdb28","user":{"login":"s-maheshbabu","id":10920089,"avatar_url":"https://avatars3.githubusercontent.com/u/10920089?v=4","gravatar_id":"","url":"https://api.github.com/users/s-maheshbabu","html_url":"https://github.com/s-maheshbabu","followers_url":"https://api.github.com/users/s-maheshbabu/followers","following_url":"https://api.github.com/users/s-maheshbabu/following{/other_user}","gists_url":"https://api.github.com/users/s-maheshbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/s-maheshbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-maheshbabu/subscriptions","organizations_url":"https://api.github.com/users/s-maheshbabu/orgs","repos_url":"https://api.github.com/users/s-maheshbabu/repos","events_url":"https://api.github.com/users/s-maheshbabu/events{/privacy}","received_events_url":"https://api.github.com/users/s-maheshbabu/received_events","type":"User","site_admin":false},"repo":{"id":122009781,"name":"silent-alexa","full_name":"s-maheshbabu/silent-alexa","owner":{"login":"s-maheshbabu","id":10920089,"avatar_url":"https://avatars3.githubusercontent.com/u/10920089?v=4","gravatar_id":"","url":"https://api.github.com/users/s-maheshbabu","html_url":"https://github.com/s-maheshbabu","followers_url":"https://api.github.com/users/s-maheshbabu/followers","following_url":"https://api.github.com/users/s-maheshbabu/following{/other_user}","gists_url":"https://api.github.com/users/s-maheshbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/s-maheshbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-maheshbabu/subscriptions","organizations_url":"https://api.github.com/users/s-maheshbabu/orgs","repos_url":"https://api.github.com/users/s-maheshbabu/repos","events_url":"https://api.github.com/users/s-maheshbabu/events{/privacy}","received_events_url":"https://api.github.com/users/s-maheshbabu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/s-maheshbabu/silent-alexa","description":"A text based interface to Amazon Alexa","fork":false,"url":"https://api.github.com/repos/s-maheshbabu/silent-alexa","forks_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/forks","keys_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/teams","hooks_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/hooks","issue_events_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/issues/events{/number}","events_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/events","assignees_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/assignees{/user}","branches_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/branches{/branch}","tags_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/tags","blobs_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/git/refs{/sha}","trees_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/statuses/{sha}","languages_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/languages","stargazers_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/stargazers","contributors_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/contributors","subscribers_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/subscribers","subscription_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/subscription","commits_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/commits{/sha}","git_commits_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/git/commits{/sha}","comments_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/comments{/number}","issue_comment_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/issues/comments{/number}","contents_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/contents/{+path}","compare_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/merges","archive_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/downloads","issues_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/issues{/number}","pulls_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/pulls{/number}","milestones_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/milestones{/number}","notifications_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/labels{/name}","releases_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/releases{/id}","deployments_url":"https://api.github.com/repos/s-maheshbabu/silent-alexa/deployments","created_at":"2018-02-19T02:09:22Z","updated_at":"2018-04-11T22:19:20Z","pushed_at":"2018-04-11T23:27:08Z","git_url":"git://github.com/s-maheshbabu/silent-alexa.git","ssh_url":"git@github.com:s-maheshbabu/silent-alexa.git","clone_url":"https://github.com/s-maheshbabu/silent-alexa.git","svn_url":"https://github.com/s-maheshbabu/silent-alexa","homepage":null,"size":3139,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":1,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/s-maheshbabu/silent-alexa/pulls/37"},"html":{"href":"https://github.com/s-maheshbabu/silent-alexa/pull/37"},"issue":{"href":"https://api.github.com/repos/s-maheshbabu/silent-alexa/issues/37"},"comments":{"href":"https://api.github.com/repos/s-maheshbabu/silent-alexa/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/s-maheshbabu/silent-alexa/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/s-maheshbabu/silent-alexa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/s-maheshbabu/silent-alexa/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/s-maheshbabu/silent-alexa/statuses/5a19e2dfb1bb196d44ab43ef9fe134e2c50d2104"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"gootla-manasa"}}