{"action":"created","comment":{"url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/pulls/comments/174484861","pull_request_review_id":103849541,"id":174484861,"diff_hunk":"@@ -0,0 +1,63 @@\n+import 'jsdom-global/register';\n+import React from 'react';\n+import { expect } from 'chai';\n+import {configure, shallow, mount} from 'enzyme';\n+import  Adapter from 'enzyme-adapter-react-16';\n+import {spy } from 'sinon';\n+import LandingPage from './LandingPage';\n+import { Tab } from 'material-ui/Tabs';\n+import {ReactTestRenderer} from 'react-test-renderer';\n+\n+configure({ adapter: new Adapter() });\n+\n+describe(\"Component : LandingPage\", () => {\n+    let mountWrapper = null\n+    let shallowWrapper = null\n+    let sinonSpy = null\n+    beforeEach(() => {\n+        \n+        mountWrapper= mount(<LandingPage />)\n+        shallowWrapper = shallow(<LandingPage />)\n+    })\n+    \n+    describe(\"component unit tests\", () => {\n+\n+        it(\"component renders successfully\", () => {\n+            expect(mountWrapper).to.be.not.undefined\n+        })\n+        it(\"component contains account creation and login div\", () => {\n+            expect(mountWrapper.find('Login')).to.be.lengthOf(1)\n+            expect(mountWrapper.find('Register')).to.be.lengthOf(1)\n+        })\n+        it(\"component card contains header, text and acions sections\", () => {\n+            expect(mountWrapper.find(\"Card\").find(\"CardHeader\")).to.be.lengthOf(1)\n+            expect(mountWrapper.find(\"Card\").find(\"CardMedia\")).to.be.lengthOf(1)\n+            expect(mountWrapper.find(\"Card\").find(\"CardActions\")).to.be.lengthOf(1)\n+        })\n+        it(\"component header has a title and sub-title\", () => {\n+            expect(mountWrapper.find(\"CardHeader\").prop(\"title\")).to.be.not.undefined\n+            expect(mountWrapper.find(\"CardHeader\").prop(\"subtitle\")).to.be.not.undefined\n+        })\n+        it(\"account section contains a card with tabs and switcher\", () => {\n+            expect(mountWrapper.find(\"Card\").find(\"Tab\"))\n+        })\n+        it(\"component has a tab with an icon and header\", () => {\n+            expect(mountWrapper.find(\"Tab\").children()).to.be.lengthOf(2)\n+            expect(mountWrapper.find(\"Tab\").first().prop(\"icon\")).to.be.not.undefined\n+            expect(mountWrapper.find(\"Tab\").first().prop(\"label\")).to.be.not.undefined\n+\n+        })\n+        it(\"component has a description section\", () => {\n+            expect(mountWrapper.find(\"p\")).to.be.lengthOf(1)\n+        })\n+        it(\"component Tab change changes tabValue\", () => {\n+            sinonSpy = spy(LandingPage.prototype, 'handleChange')\n+            const wrapper = shallow(<LandingPage />)\n+\n+            expect(wrapper.state(\"tabValue\")).to.equal(0)\n+            wrapper.find(\"Tabs\").simulate(\"change\")\n+\n+            expect(sinonSpy.calledOnce).to.equal(true)","path":"src/pages/LandingPage.test.js","position":60,"original_position":60,"commit_id":"c26adbc60ada5a463f8967422f1f731d66377ae6","original_commit_id":"c26adbc60ada5a463f8967422f1f731d66377ae6","user":{"login":"houndci-bot","id":6697940,"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":"Expected indentation of 6 spaces but found 12                          indent<br>Missing semicolon                                                      semi","created_at":"2018-03-14T14:47:44Z","updated_at":"2018-03-14T14:47:46Z","html_url":"https://github.com/PaulKariukiRimiru/bright-events-react/pull/7#discussion_r174484861","pull_request_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/pulls/7","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/pulls/comments/174484861"},"html":{"href":"https://github.com/PaulKariukiRimiru/bright-events-react/pull/7#discussion_r174484861"},"pull_request":{"href":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/pulls/7","id":174979064,"html_url":"https://github.com/PaulKariukiRimiru/bright-events-react/pull/7","diff_url":"https://github.com/PaulKariukiRimiru/bright-events-react/pull/7.diff","patch_url":"https://github.com/PaulKariukiRimiru/bright-events-react/pull/7.patch","issue_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/issues/7","number":7,"state":"open","locked":false,"title":"#155955038 - create navigation and appbar","user":{"login":"PaulKariukiRimiru","id":17454824,"avatar_url":"https://avatars3.githubusercontent.com/u/17454824?v=4","gravatar_id":"","url":"https://api.github.com/users/PaulKariukiRimiru","html_url":"https://github.com/PaulKariukiRimiru","followers_url":"https://api.github.com/users/PaulKariukiRimiru/followers","following_url":"https://api.github.com/users/PaulKariukiRimiru/following{/other_user}","gists_url":"https://api.github.com/users/PaulKariukiRimiru/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulKariukiRimiru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulKariukiRimiru/subscriptions","organizations_url":"https://api.github.com/users/PaulKariukiRimiru/orgs","repos_url":"https://api.github.com/users/PaulKariukiRimiru/repos","events_url":"https://api.github.com/users/PaulKariukiRimiru/events{/privacy}","received_events_url":"https://api.github.com/users/PaulKariukiRimiru/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nThis PR adds a Navigation drawer and an appbar to the application\r\n#### Description of Task to be completed?\r\nCreate a navigation drawer and a application bar for the application\r\n#### How should this be manually tested?\r\nthis cannot be manually tested at the momment\r\n#### Any background context you want to provide?\r\nThe application navigation bar allows the user to navigate the application pages. The app bar provides a point for the user to toggle the navigation drawer and other menu options\r\n#### What are the relevant pivotal tracker stories?\r\n#155955038","created_at":"2018-03-14T14:47:17Z","updated_at":"2018-03-14T14:47:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7fdd30d2a872b5da689cc405a951bc6d2197cfe9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/pulls/7/commits","review_comments_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/pulls/7/comments","review_comment_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/issues/7/comments","statuses_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/statuses/c26adbc60ada5a463f8967422f1f731d66377ae6","head":{"label":"PaulKariukiRimiru:ft-create-navigation-and-appbar-#155955038","ref":"ft-create-navigation-and-appbar-#155955038","sha":"c26adbc60ada5a463f8967422f1f731d66377ae6","user":{"login":"PaulKariukiRimiru","id":17454824,"avatar_url":"https://avatars3.githubusercontent.com/u/17454824?v=4","gravatar_id":"","url":"https://api.github.com/users/PaulKariukiRimiru","html_url":"https://github.com/PaulKariukiRimiru","followers_url":"https://api.github.com/users/PaulKariukiRimiru/followers","following_url":"https://api.github.com/users/PaulKariukiRimiru/following{/other_user}","gists_url":"https://api.github.com/users/PaulKariukiRimiru/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulKariukiRimiru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulKariukiRimiru/subscriptions","organizations_url":"https://api.github.com/users/PaulKariukiRimiru/orgs","repos_url":"https://api.github.com/users/PaulKariukiRimiru/repos","events_url":"https://api.github.com/users/PaulKariukiRimiru/events{/privacy}","received_events_url":"https://api.github.com/users/PaulKariukiRimiru/received_events","type":"User","site_admin":false},"repo":{"id":120581914,"name":"bright-events-react","full_name":"PaulKariukiRimiru/bright-events-react","owner":{"login":"PaulKariukiRimiru","id":17454824,"avatar_url":"https://avatars3.githubusercontent.com/u/17454824?v=4","gravatar_id":"","url":"https://api.github.com/users/PaulKariukiRimiru","html_url":"https://github.com/PaulKariukiRimiru","followers_url":"https://api.github.com/users/PaulKariukiRimiru/followers","following_url":"https://api.github.com/users/PaulKariukiRimiru/following{/other_user}","gists_url":"https://api.github.com/users/PaulKariukiRimiru/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulKariukiRimiru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulKariukiRimiru/subscriptions","organizations_url":"https://api.github.com/users/PaulKariukiRimiru/orgs","repos_url":"https://api.github.com/users/PaulKariukiRimiru/repos","events_url":"https://api.github.com/users/PaulKariukiRimiru/events{/privacy}","received_events_url":"https://api.github.com/users/PaulKariukiRimiru/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PaulKariukiRimiru/bright-events-react","description":"Front end react project fro the bright events API","fork":false,"url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react","forks_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/forks","keys_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/teams","hooks_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/hooks","issue_events_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/issues/events{/number}","events_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/events","assignees_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/assignees{/user}","branches_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/branches{/branch}","tags_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/tags","blobs_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/statuses/{sha}","languages_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/languages","stargazers_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/stargazers","contributors_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/contributors","subscribers_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/subscribers","subscription_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/subscription","commits_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/contents/{+path}","compare_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/merges","archive_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/downloads","issues_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/issues{/number}","pulls_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/pulls{/number}","milestones_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/milestones{/number}","notifications_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/labels{/name}","releases_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/releases{/id}","deployments_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/deployments","created_at":"2018-02-07T07:51:57Z","updated_at":"2018-02-07T08:06:22Z","pushed_at":"2018-03-14T14:47:18Z","git_url":"git://github.com/PaulKariukiRimiru/bright-events-react.git","ssh_url":"git@github.com:PaulKariukiRimiru/bright-events-react.git","clone_url":"https://github.com/PaulKariukiRimiru/bright-events-react.git","svn_url":"https://github.com/PaulKariukiRimiru/bright-events-react","homepage":null,"size":3724,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"PaulKariukiRimiru:master","ref":"master","sha":"9f9c0c774a5166dd8aad8d3a7dcb29efb8e8ab79","user":{"login":"PaulKariukiRimiru","id":17454824,"avatar_url":"https://avatars3.githubusercontent.com/u/17454824?v=4","gravatar_id":"","url":"https://api.github.com/users/PaulKariukiRimiru","html_url":"https://github.com/PaulKariukiRimiru","followers_url":"https://api.github.com/users/PaulKariukiRimiru/followers","following_url":"https://api.github.com/users/PaulKariukiRimiru/following{/other_user}","gists_url":"https://api.github.com/users/PaulKariukiRimiru/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulKariukiRimiru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulKariukiRimiru/subscriptions","organizations_url":"https://api.github.com/users/PaulKariukiRimiru/orgs","repos_url":"https://api.github.com/users/PaulKariukiRimiru/repos","events_url":"https://api.github.com/users/PaulKariukiRimiru/events{/privacy}","received_events_url":"https://api.github.com/users/PaulKariukiRimiru/received_events","type":"User","site_admin":false},"repo":{"id":120581914,"name":"bright-events-react","full_name":"PaulKariukiRimiru/bright-events-react","owner":{"login":"PaulKariukiRimiru","id":17454824,"avatar_url":"https://avatars3.githubusercontent.com/u/17454824?v=4","gravatar_id":"","url":"https://api.github.com/users/PaulKariukiRimiru","html_url":"https://github.com/PaulKariukiRimiru","followers_url":"https://api.github.com/users/PaulKariukiRimiru/followers","following_url":"https://api.github.com/users/PaulKariukiRimiru/following{/other_user}","gists_url":"https://api.github.com/users/PaulKariukiRimiru/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulKariukiRimiru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulKariukiRimiru/subscriptions","organizations_url":"https://api.github.com/users/PaulKariukiRimiru/orgs","repos_url":"https://api.github.com/users/PaulKariukiRimiru/repos","events_url":"https://api.github.com/users/PaulKariukiRimiru/events{/privacy}","received_events_url":"https://api.github.com/users/PaulKariukiRimiru/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PaulKariukiRimiru/bright-events-react","description":"Front end react project fro the bright events API","fork":false,"url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react","forks_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/forks","keys_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/teams","hooks_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/hooks","issue_events_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/issues/events{/number}","events_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/events","assignees_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/assignees{/user}","branches_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/branches{/branch}","tags_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/tags","blobs_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/statuses/{sha}","languages_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/languages","stargazers_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/stargazers","contributors_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/contributors","subscribers_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/subscribers","subscription_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/subscription","commits_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/contents/{+path}","compare_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/merges","archive_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/downloads","issues_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/issues{/number}","pulls_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/pulls{/number}","milestones_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/milestones{/number}","notifications_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/labels{/name}","releases_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/releases{/id}","deployments_url":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/deployments","created_at":"2018-02-07T07:51:57Z","updated_at":"2018-02-07T08:06:22Z","pushed_at":"2018-03-14T14:47:18Z","git_url":"git://github.com/PaulKariukiRimiru/bright-events-react.git","ssh_url":"git@github.com:PaulKariukiRimiru/bright-events-react.git","clone_url":"https://github.com/PaulKariukiRimiru/bright-events-react.git","svn_url":"https://github.com/PaulKariukiRimiru/bright-events-react","homepage":null,"size":3724,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/pulls/7"},"html":{"href":"https://github.com/PaulKariukiRimiru/bright-events-react/pull/7"},"issue":{"href":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/issues/7"},"comments":{"href":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/PaulKariukiRimiru/bright-events-react/statuses/c26adbc60ada5a463f8967422f1f731d66377ae6"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}