{"action":"created","comment":{"url":"https://api.github.com/repos/andela-bphilips/docvault/pulls/comments/124783628","pull_request_review_id":47105453,"id":124783628,"diff_hunk":"@@ -0,0 +1,56 @@\n+// This file is written in ES5 since it's not transpiled by Babel.\n+// This file does the following:\n+// 1. Sets Node environment variable\n+// 2. Registers babel for transpiling our code for testing\n+// 3. Disables Webpack-specific features that Mocha doesn't understand.\n+// 4. Requires jsdom so we can test via an in-memory DOM in Node\n+// 5. Sets up global vars that mimic a browser.\n+\n+/* eslint-disable no-var*/\n+\n+/* This setting assures the .babelrc dev config (which includes\n+ hot module reloading code) doesn't apply for tests.\n+ But also, we don't want to set it to production here for\n+ two reasons:\n+ 1. You won't see any PropType validation warnings when\n+ code is running in prod mode.\n+ 2. Tests will not display detailed error messages\n+ when running against production version code\n+ */\n+process.env.NODE_ENV = 'test';\n+\n+// Register babel so that it will transpile ES6 to ES5\n+// before our tests run.\n+require('babel-register')();\n+\n+// Disable webpack-specific features for tests since\n+// Mocha doesn't know what to do with them.\n+require.extensions['.css'] = function () {return null;};","path":"client/test/testSetup.js","position":28,"original_position":28,"commit_id":"3fff098d72ddb53d8cc4ad1b6d9ab1163a96de41","original_commit_id":"3fff098d72ddb53d8cc4ad1b6d9ab1163a96de41","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.githubusercontent.com/u/6697940?v=3","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":"Unexpected unnamed function                                      func-names<br>Requires a space after '{'                                       block-spacing<br>Requires a space before '}'                                      block-spacing","created_at":"2017-06-29T12:18:32Z","updated_at":"2017-06-29T12:18:33Z","html_url":"https://github.com/andela-bphilips/docvault/pull/24#discussion_r124783628","pull_request_url":"https://api.github.com/repos/andela-bphilips/docvault/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/andela-bphilips/docvault/pulls/comments/124783628"},"html":{"href":"https://github.com/andela-bphilips/docvault/pull/24#discussion_r124783628"},"pull_request":{"href":"https://api.github.com/repos/andela-bphilips/docvault/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/andela-bphilips/docvault/pulls/24","id":128137185,"html_url":"https://github.com/andela-bphilips/docvault/pull/24","diff_url":"https://github.com/andela-bphilips/docvault/pull/24.diff","patch_url":"https://github.com/andela-bphilips/docvault/pull/24.patch","issue_url":"https://api.github.com/repos/andela-bphilips/docvault/issues/24","number":24,"state":"open","locked":false,"title":"#147980881 Setup unit and e2e testing for the Frontend","user":{"login":"andela-bphilips","id":28450255,"avatar_url":"https://avatars2.githubusercontent.com/u/28450255?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bphilips","html_url":"https://github.com/andela-bphilips","followers_url":"https://api.github.com/users/andela-bphilips/followers","following_url":"https://api.github.com/users/andela-bphilips/following{/other_user}","gists_url":"https://api.github.com/users/andela-bphilips/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bphilips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bphilips/subscriptions","organizations_url":"https://api.github.com/users/andela-bphilips/orgs","repos_url":"https://api.github.com/users/andela-bphilips/repos","events_url":"https://api.github.com/users/andela-bphilips/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bphilips/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n* It Setup unit and e2e testing for the Frontend\r\n#### Description of Task to be completed?\r\nN/A\r\n\r\n#### How should this be manually tested?\r\nN/A\r\n\r\n#### Any background context you want to provide?\r\n N/A\r\n#### What are the relevant pivotal tracker stories?\r\n#147980881 Setup unit and e2e testing for the Frontend\r\n\r\n#### Screenshots (if appropriate): \r\nN/A\r\n#### Questions:\r\n N/A\r\n","created_at":"2017-06-29T12:18:18Z","updated_at":"2017-06-29T12:18:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a632b785fd353cf0022f4d3c35267a453e882500","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela-bphilips/docvault/pulls/24/commits","review_comments_url":"https://api.github.com/repos/andela-bphilips/docvault/pulls/24/comments","review_comment_url":"https://api.github.com/repos/andela-bphilips/docvault/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-bphilips/docvault/issues/24/comments","statuses_url":"https://api.github.com/repos/andela-bphilips/docvault/statuses/3fff098d72ddb53d8cc4ad1b6d9ab1163a96de41","head":{"label":"andela-bphilips:chore/147980881/Setup-frontend-test","ref":"chore/147980881/Setup-frontend-test","sha":"3fff098d72ddb53d8cc4ad1b6d9ab1163a96de41","user":{"login":"andela-bphilips","id":28450255,"avatar_url":"https://avatars2.githubusercontent.com/u/28450255?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bphilips","html_url":"https://github.com/andela-bphilips","followers_url":"https://api.github.com/users/andela-bphilips/followers","following_url":"https://api.github.com/users/andela-bphilips/following{/other_user}","gists_url":"https://api.github.com/users/andela-bphilips/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bphilips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bphilips/subscriptions","organizations_url":"https://api.github.com/users/andela-bphilips/orgs","repos_url":"https://api.github.com/users/andela-bphilips/repos","events_url":"https://api.github.com/users/andela-bphilips/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bphilips/received_events","type":"User","site_admin":false},"repo":{"id":93849150,"name":"docvault","full_name":"andela-bphilips/docvault","owner":{"login":"andela-bphilips","id":28450255,"avatar_url":"https://avatars2.githubusercontent.com/u/28450255?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bphilips","html_url":"https://github.com/andela-bphilips","followers_url":"https://api.github.com/users/andela-bphilips/followers","following_url":"https://api.github.com/users/andela-bphilips/following{/other_user}","gists_url":"https://api.github.com/users/andela-bphilips/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bphilips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bphilips/subscriptions","organizations_url":"https://api.github.com/users/andela-bphilips/orgs","repos_url":"https://api.github.com/users/andela-bphilips/repos","events_url":"https://api.github.com/users/andela-bphilips/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bphilips/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-bphilips/docvault","description":"Docvault - A Fullstack Document Management System","fork":false,"url":"https://api.github.com/repos/andela-bphilips/docvault","forks_url":"https://api.github.com/repos/andela-bphilips/docvault/forks","keys_url":"https://api.github.com/repos/andela-bphilips/docvault/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-bphilips/docvault/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-bphilips/docvault/teams","hooks_url":"https://api.github.com/repos/andela-bphilips/docvault/hooks","issue_events_url":"https://api.github.com/repos/andela-bphilips/docvault/issues/events{/number}","events_url":"https://api.github.com/repos/andela-bphilips/docvault/events","assignees_url":"https://api.github.com/repos/andela-bphilips/docvault/assignees{/user}","branches_url":"https://api.github.com/repos/andela-bphilips/docvault/branches{/branch}","tags_url":"https://api.github.com/repos/andela-bphilips/docvault/tags","blobs_url":"https://api.github.com/repos/andela-bphilips/docvault/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-bphilips/docvault/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-bphilips/docvault/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-bphilips/docvault/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-bphilips/docvault/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-bphilips/docvault/languages","stargazers_url":"https://api.github.com/repos/andela-bphilips/docvault/stargazers","contributors_url":"https://api.github.com/repos/andela-bphilips/docvault/contributors","subscribers_url":"https://api.github.com/repos/andela-bphilips/docvault/subscribers","subscription_url":"https://api.github.com/repos/andela-bphilips/docvault/subscription","commits_url":"https://api.github.com/repos/andela-bphilips/docvault/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-bphilips/docvault/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-bphilips/docvault/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-bphilips/docvault/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-bphilips/docvault/contents/{+path}","compare_url":"https://api.github.com/repos/andela-bphilips/docvault/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-bphilips/docvault/merges","archive_url":"https://api.github.com/repos/andela-bphilips/docvault/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-bphilips/docvault/downloads","issues_url":"https://api.github.com/repos/andela-bphilips/docvault/issues{/number}","pulls_url":"https://api.github.com/repos/andela-bphilips/docvault/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-bphilips/docvault/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-bphilips/docvault/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-bphilips/docvault/labels{/name}","releases_url":"https://api.github.com/repos/andela-bphilips/docvault/releases{/id}","deployments_url":"https://api.github.com/repos/andela-bphilips/docvault/deployments","created_at":"2017-06-09T10:44:42Z","updated_at":"2017-06-28T22:54:40Z","pushed_at":"2017-06-29T12:18:19Z","git_url":"git://github.com/andela-bphilips/docvault.git","ssh_url":"git@github.com:andela-bphilips/docvault.git","clone_url":"https://github.com/andela-bphilips/docvault.git","svn_url":"https://github.com/andela-bphilips/docvault","homepage":"https://docvault.herokuapp.com","size":2282,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"staging"}},"base":{"label":"andela-bphilips:staging","ref":"staging","sha":"35c9f25910f1dee3801beb2ffe0444fb0077a980","user":{"login":"andela-bphilips","id":28450255,"avatar_url":"https://avatars2.githubusercontent.com/u/28450255?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bphilips","html_url":"https://github.com/andela-bphilips","followers_url":"https://api.github.com/users/andela-bphilips/followers","following_url":"https://api.github.com/users/andela-bphilips/following{/other_user}","gists_url":"https://api.github.com/users/andela-bphilips/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bphilips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bphilips/subscriptions","organizations_url":"https://api.github.com/users/andela-bphilips/orgs","repos_url":"https://api.github.com/users/andela-bphilips/repos","events_url":"https://api.github.com/users/andela-bphilips/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bphilips/received_events","type":"User","site_admin":false},"repo":{"id":93849150,"name":"docvault","full_name":"andela-bphilips/docvault","owner":{"login":"andela-bphilips","id":28450255,"avatar_url":"https://avatars2.githubusercontent.com/u/28450255?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bphilips","html_url":"https://github.com/andela-bphilips","followers_url":"https://api.github.com/users/andela-bphilips/followers","following_url":"https://api.github.com/users/andela-bphilips/following{/other_user}","gists_url":"https://api.github.com/users/andela-bphilips/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bphilips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bphilips/subscriptions","organizations_url":"https://api.github.com/users/andela-bphilips/orgs","repos_url":"https://api.github.com/users/andela-bphilips/repos","events_url":"https://api.github.com/users/andela-bphilips/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bphilips/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-bphilips/docvault","description":"Docvault - A Fullstack Document Management System","fork":false,"url":"https://api.github.com/repos/andela-bphilips/docvault","forks_url":"https://api.github.com/repos/andela-bphilips/docvault/forks","keys_url":"https://api.github.com/repos/andela-bphilips/docvault/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-bphilips/docvault/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-bphilips/docvault/teams","hooks_url":"https://api.github.com/repos/andela-bphilips/docvault/hooks","issue_events_url":"https://api.github.com/repos/andela-bphilips/docvault/issues/events{/number}","events_url":"https://api.github.com/repos/andela-bphilips/docvault/events","assignees_url":"https://api.github.com/repos/andela-bphilips/docvault/assignees{/user}","branches_url":"https://api.github.com/repos/andela-bphilips/docvault/branches{/branch}","tags_url":"https://api.github.com/repos/andela-bphilips/docvault/tags","blobs_url":"https://api.github.com/repos/andela-bphilips/docvault/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-bphilips/docvault/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-bphilips/docvault/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-bphilips/docvault/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-bphilips/docvault/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-bphilips/docvault/languages","stargazers_url":"https://api.github.com/repos/andela-bphilips/docvault/stargazers","contributors_url":"https://api.github.com/repos/andela-bphilips/docvault/contributors","subscribers_url":"https://api.github.com/repos/andela-bphilips/docvault/subscribers","subscription_url":"https://api.github.com/repos/andela-bphilips/docvault/subscription","commits_url":"https://api.github.com/repos/andela-bphilips/docvault/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-bphilips/docvault/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-bphilips/docvault/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-bphilips/docvault/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-bphilips/docvault/contents/{+path}","compare_url":"https://api.github.com/repos/andela-bphilips/docvault/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-bphilips/docvault/merges","archive_url":"https://api.github.com/repos/andela-bphilips/docvault/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-bphilips/docvault/downloads","issues_url":"https://api.github.com/repos/andela-bphilips/docvault/issues{/number}","pulls_url":"https://api.github.com/repos/andela-bphilips/docvault/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-bphilips/docvault/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-bphilips/docvault/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-bphilips/docvault/labels{/name}","releases_url":"https://api.github.com/repos/andela-bphilips/docvault/releases{/id}","deployments_url":"https://api.github.com/repos/andela-bphilips/docvault/deployments","created_at":"2017-06-09T10:44:42Z","updated_at":"2017-06-28T22:54:40Z","pushed_at":"2017-06-29T12:18:19Z","git_url":"git://github.com/andela-bphilips/docvault.git","ssh_url":"git@github.com:andela-bphilips/docvault.git","clone_url":"https://github.com/andela-bphilips/docvault.git","svn_url":"https://github.com/andela-bphilips/docvault","homepage":"https://docvault.herokuapp.com","size":2282,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/andela-bphilips/docvault/pulls/24"},"html":{"href":"https://github.com/andela-bphilips/docvault/pull/24"},"issue":{"href":"https://api.github.com/repos/andela-bphilips/docvault/issues/24"},"comments":{"href":"https://api.github.com/repos/andela-bphilips/docvault/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-bphilips/docvault/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-bphilips/docvault/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-bphilips/docvault/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/andela-bphilips/docvault/statuses/3fff098d72ddb53d8cc4ad1b6d9ab1163a96de41"}}}}
{"actor":{"display_login":"houndci-bot"}}