{"action":"created","comment":{"url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/pulls/comments/168940931","pull_request_review_id":97393003,"id":168940931,"diff_hunk":"@@ -0,0 +1,63 @@\n+import { expect } from 'code'\n+import sinon from 'sinon'\n+import { fetchData } from '../../../src/services/fetchData'\n+import 'isomorphic-fetch'\n+\n+describe('Given the `fetchData` service', () => {\n+    describe('when getting data', () => {\n+        let validEndpoint\n+        let invalidEndpoint\n+        let sandbox\n+        let fetchStub\n+        let expectedError\n+        let expectedResult\n+\n+        beforeEach(() => {\n+            sandbox = sinon.createSandbox()\n+            validEndpoint = 'http://localhost:8080/pizza.json'\n+            invalidEndpoint = '!@#$'\n+            expectedError = new Error(\"Ain't gonna happen\")\n+            expectedResult = {foo:'bar'}\n+            fetchStub = sinon.stub(global, 'fetch')\n+        })\n+\n+        afterEach(() => {\n+            global.fetch.restore()","path":"test/services/fetchData/index.spec.js","position":25,"original_position":25,"commit_id":"39608025c2c51bf1107fb0de21df9d9ee6db5ce3","original_commit_id":"39608025c2c51bf1107fb0de21df9d9ee6db5ce3","user":{"login":"model3volution","id":5106417,"avatar_url":"https://avatars2.githubusercontent.com/u/5106417?v=4","gravatar_id":"","url":"https://api.github.com/users/model3volution","html_url":"https://github.com/model3volution","followers_url":"https://api.github.com/users/model3volution/followers","following_url":"https://api.github.com/users/model3volution/following{/other_user}","gists_url":"https://api.github.com/users/model3volution/gists{/gist_id}","starred_url":"https://api.github.com/users/model3volution/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/model3volution/subscriptions","organizations_url":"https://api.github.com/users/model3volution/orgs","repos_url":"https://api.github.com/users/model3volution/repos","events_url":"https://api.github.com/users/model3volution/events{/privacy}","received_events_url":"https://api.github.com/users/model3volution/received_events","type":"User","site_admin":false},"body":"extraneous line.","created_at":"2018-02-18T06:08:45Z","updated_at":"2018-02-18T06:08:45Z","html_url":"https://github.com/aquent-it-solutions/front-end-test/pull/11#discussion_r168940931","pull_request_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/pulls/11","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/aquent-it-solutions/front-end-test/pulls/comments/168940931"},"html":{"href":"https://github.com/aquent-it-solutions/front-end-test/pull/11#discussion_r168940931"},"pull_request":{"href":"https://api.github.com/repos/aquent-it-solutions/front-end-test/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/pulls/11","id":169459200,"html_url":"https://github.com/aquent-it-solutions/front-end-test/pull/11","diff_url":"https://github.com/aquent-it-solutions/front-end-test/pull/11.diff","patch_url":"https://github.com/aquent-it-solutions/front-end-test/pull/11.patch","issue_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/issues/11","number":11,"state":"open","locked":false,"title":"[WIP] [H2T] Micah's TDD Pizza Test Solution","user":{"login":"SirYummy","id":32410282,"avatar_url":"https://avatars0.githubusercontent.com/u/32410282?v=4","gravatar_id":"","url":"https://api.github.com/users/SirYummy","html_url":"https://github.com/SirYummy","followers_url":"https://api.github.com/users/SirYummy/followers","following_url":"https://api.github.com/users/SirYummy/following{/other_user}","gists_url":"https://api.github.com/users/SirYummy/gists{/gist_id}","starred_url":"https://api.github.com/users/SirYummy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirYummy/subscriptions","organizations_url":"https://api.github.com/users/SirYummy/orgs","repos_url":"https://api.github.com/users/SirYummy/repos","events_url":"https://api.github.com/users/SirYummy/events{/privacy}","received_events_url":"https://api.github.com/users/SirYummy/received_events","type":"User","site_admin":false},"body":"Goals:\r\n\r\n- [ ] TDD an API (outside of a React app) ie) How we TDD'd the Potter API\r\n  - [x] write the unit tests with an initial failing state (red light)\r\n  - [ ] write the actual code to make the tests pass and meet the requirements (green light)\r\n- [ ] TDD an app that simply renders a list of items\r\n  - [ ] write the unit tests with an initial failing state (red light)\r\n  - [ ] write the actual code to make the tests pass and meet the requirements (green light)\r\n- [ ] TDD an app that passes a callback as a prop\r\n  - [ ] write the unit tests with an initial failing state (red light)\r\n  - [ ] write the actual code to make the tests pass and meet the requirements (green light)\r\n- [ ] TDD an app that has a controlled component\r\n  - [ ] write the unit tests with an initial failing state (red light)\r\n  - [ ] write the actual code to make the tests pass and meet the requirements (green light)\r\n","created_at":"2018-02-15T19:10:55Z","updated_at":"2018-02-18T06:08:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3fc2fe8dbdfb10b3163cacd8ab8dfdec29e9fb79","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/pulls/11/commits","review_comments_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/pulls/11/comments","review_comment_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/issues/11/comments","statuses_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/statuses/39608025c2c51bf1107fb0de21df9d9ee6db5ce3","head":{"label":"SirYummy:master","ref":"master","sha":"39608025c2c51bf1107fb0de21df9d9ee6db5ce3","user":{"login":"SirYummy","id":32410282,"avatar_url":"https://avatars0.githubusercontent.com/u/32410282?v=4","gravatar_id":"","url":"https://api.github.com/users/SirYummy","html_url":"https://github.com/SirYummy","followers_url":"https://api.github.com/users/SirYummy/followers","following_url":"https://api.github.com/users/SirYummy/following{/other_user}","gists_url":"https://api.github.com/users/SirYummy/gists{/gist_id}","starred_url":"https://api.github.com/users/SirYummy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirYummy/subscriptions","organizations_url":"https://api.github.com/users/SirYummy/orgs","repos_url":"https://api.github.com/users/SirYummy/repos","events_url":"https://api.github.com/users/SirYummy/events{/privacy}","received_events_url":"https://api.github.com/users/SirYummy/received_events","type":"User","site_admin":false},"repo":{"id":121663638,"name":"front-end-test-tdd-solution","full_name":"SirYummy/front-end-test-tdd-solution","owner":{"login":"SirYummy","id":32410282,"avatar_url":"https://avatars0.githubusercontent.com/u/32410282?v=4","gravatar_id":"","url":"https://api.github.com/users/SirYummy","html_url":"https://github.com/SirYummy","followers_url":"https://api.github.com/users/SirYummy/followers","following_url":"https://api.github.com/users/SirYummy/following{/other_user}","gists_url":"https://api.github.com/users/SirYummy/gists{/gist_id}","starred_url":"https://api.github.com/users/SirYummy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirYummy/subscriptions","organizations_url":"https://api.github.com/users/SirYummy/orgs","repos_url":"https://api.github.com/users/SirYummy/repos","events_url":"https://api.github.com/users/SirYummy/events{/privacy}","received_events_url":"https://api.github.com/users/SirYummy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SirYummy/front-end-test-tdd-solution","description":"Test for FED Candidates","fork":true,"url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution","forks_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/forks","keys_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/teams","hooks_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/hooks","issue_events_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/issues/events{/number}","events_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/events","assignees_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/assignees{/user}","branches_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/branches{/branch}","tags_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/tags","blobs_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/git/refs{/sha}","trees_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/statuses/{sha}","languages_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/languages","stargazers_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/stargazers","contributors_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/contributors","subscribers_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/subscribers","subscription_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/subscription","commits_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/commits{/sha}","git_commits_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/git/commits{/sha}","comments_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/comments{/number}","issue_comment_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/issues/comments{/number}","contents_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/contents/{+path}","compare_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/merges","archive_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/downloads","issues_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/issues{/number}","pulls_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/pulls{/number}","milestones_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/milestones{/number}","notifications_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/labels{/name}","releases_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/releases{/id}","deployments_url":"https://api.github.com/repos/SirYummy/front-end-test-tdd-solution/deployments","created_at":"2018-02-15T18:11:51Z","updated_at":"2018-02-15T18:12:50Z","pushed_at":"2018-02-16T20:59:11Z","git_url":"git://github.com/SirYummy/front-end-test-tdd-solution.git","ssh_url":"git@github.com:SirYummy/front-end-test-tdd-solution.git","clone_url":"https://github.com/SirYummy/front-end-test-tdd-solution.git","svn_url":"https://github.com/SirYummy/front-end-test-tdd-solution","homepage":null,"size":149,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aquent-it-solutions:master","ref":"master","sha":"74c4b5fb3d0b628e00ad3509c220975cc05d37ea","user":{"login":"aquent-it-solutions","id":8367219,"avatar_url":"https://avatars3.githubusercontent.com/u/8367219?v=4","gravatar_id":"","url":"https://api.github.com/users/aquent-it-solutions","html_url":"https://github.com/aquent-it-solutions","followers_url":"https://api.github.com/users/aquent-it-solutions/followers","following_url":"https://api.github.com/users/aquent-it-solutions/following{/other_user}","gists_url":"https://api.github.com/users/aquent-it-solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/aquent-it-solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aquent-it-solutions/subscriptions","organizations_url":"https://api.github.com/users/aquent-it-solutions/orgs","repos_url":"https://api.github.com/users/aquent-it-solutions/repos","events_url":"https://api.github.com/users/aquent-it-solutions/events{/privacy}","received_events_url":"https://api.github.com/users/aquent-it-solutions/received_events","type":"Organization","site_admin":false},"repo":{"id":98930174,"name":"front-end-test","full_name":"aquent-it-solutions/front-end-test","owner":{"login":"aquent-it-solutions","id":8367219,"avatar_url":"https://avatars3.githubusercontent.com/u/8367219?v=4","gravatar_id":"","url":"https://api.github.com/users/aquent-it-solutions","html_url":"https://github.com/aquent-it-solutions","followers_url":"https://api.github.com/users/aquent-it-solutions/followers","following_url":"https://api.github.com/users/aquent-it-solutions/following{/other_user}","gists_url":"https://api.github.com/users/aquent-it-solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/aquent-it-solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aquent-it-solutions/subscriptions","organizations_url":"https://api.github.com/users/aquent-it-solutions/orgs","repos_url":"https://api.github.com/users/aquent-it-solutions/repos","events_url":"https://api.github.com/users/aquent-it-solutions/events{/privacy}","received_events_url":"https://api.github.com/users/aquent-it-solutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aquent-it-solutions/front-end-test","description":"Test for FED Candidates","fork":false,"url":"https://api.github.com/repos/aquent-it-solutions/front-end-test","forks_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/forks","keys_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/teams","hooks_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/hooks","issue_events_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/issues/events{/number}","events_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/events","assignees_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/assignees{/user}","branches_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/branches{/branch}","tags_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/tags","blobs_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/statuses/{sha}","languages_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/languages","stargazers_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/stargazers","contributors_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/contributors","subscribers_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/subscribers","subscription_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/subscription","commits_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/contents/{+path}","compare_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/merges","archive_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/downloads","issues_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/issues{/number}","pulls_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/pulls{/number}","milestones_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/milestones{/number}","notifications_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/labels{/name}","releases_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/releases{/id}","deployments_url":"https://api.github.com/repos/aquent-it-solutions/front-end-test/deployments","created_at":"2017-07-31T21:09:49Z","updated_at":"2018-01-10T20:07:33Z","pushed_at":"2018-02-16T20:59:12Z","git_url":"git://github.com/aquent-it-solutions/front-end-test.git","ssh_url":"git@github.com:aquent-it-solutions/front-end-test.git","clone_url":"https://github.com/aquent-it-solutions/front-end-test.git","svn_url":"https://github.com/aquent-it-solutions/front-end-test","homepage":null,"size":142,"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":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aquent-it-solutions/front-end-test/pulls/11"},"html":{"href":"https://github.com/aquent-it-solutions/front-end-test/pull/11"},"issue":{"href":"https://api.github.com/repos/aquent-it-solutions/front-end-test/issues/11"},"comments":{"href":"https://api.github.com/repos/aquent-it-solutions/front-end-test/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/aquent-it-solutions/front-end-test/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/aquent-it-solutions/front-end-test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aquent-it-solutions/front-end-test/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/aquent-it-solutions/front-end-test/statuses/39608025c2c51bf1107fb0de21df9d9ee6db5ce3"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"model3volution"}}