{"action":"created","comment":{"url":"https://api.github.com/repos/uktrade/data-hub-frontend/pulls/comments/209307862","pull_request_review_id":145287183,"id":209307862,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwOTMwNzg2Mg==","diff_hunk":"@@ -0,0 +1,57 @@\n+\n+const mockFilesResponse = require('~/test/unit/data/document-upload/files-response.json')\n+\n+const {\n+  transformFilesResultsToDetails,\n+  transformLabelsToShowFiles,\n+} = require('~/src/apps/document-upload/transformers')\n+\n+describe('Document Upload Transformers', () => {\n+  describe('#transformFilesResultsToDetails', () => {\n+    context('when a file is uploaded', () => {\n+      beforeEach(() => {\n+        const investmentProjectId = 'investmentprojectid123'","path":"test/unit/apps/document-upload/transformers.test.js","position":13,"original_position":13,"commit_id":"3f30fe37d1cbc7bc0b0b9fa153e8e015f107d904","original_commit_id":"3f30fe37d1cbc7bc0b0b9fa153e8e015f107d904","user":{"login":"yeahfro","id":1150417,"node_id":"MDQ6VXNlcjExNTA0MTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1150417?v=4","gravatar_id":"","url":"https://api.github.com/users/yeahfro","html_url":"https://github.com/yeahfro","followers_url":"https://api.github.com/users/yeahfro/followers","following_url":"https://api.github.com/users/yeahfro/following{/other_user}","gists_url":"https://api.github.com/users/yeahfro/gists{/gist_id}","starred_url":"https://api.github.com/users/yeahfro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeahfro/subscriptions","organizations_url":"https://api.github.com/users/yeahfro/orgs","repos_url":"https://api.github.com/users/yeahfro/repos","events_url":"https://api.github.com/users/yeahfro/events{/privacy}","received_events_url":"https://api.github.com/users/yeahfro/received_events","type":"User","site_admin":false},"body":"Maybe use something that either a) is simpler or b) is realistic (to be consistent with other tests)","created_at":"2018-08-10T16:00:45Z","updated_at":"2018-08-10T16:07:59Z","html_url":"https://github.com/uktrade/data-hub-frontend/pull/1519#discussion_r209307862","pull_request_url":"https://api.github.com/repos/uktrade/data-hub-frontend/pulls/1519","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/uktrade/data-hub-frontend/pulls/comments/209307862"},"html":{"href":"https://github.com/uktrade/data-hub-frontend/pull/1519#discussion_r209307862"},"pull_request":{"href":"https://api.github.com/repos/uktrade/data-hub-frontend/pulls/1519"}}},"pull_request":{"url":"https://api.github.com/repos/uktrade/data-hub-frontend/pulls/1519","id":206435828,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2NDM1ODI4","html_url":"https://github.com/uktrade/data-hub-frontend/pull/1519","diff_url":"https://github.com/uktrade/data-hub-frontend/pull/1519.diff","patch_url":"https://github.com/uktrade/data-hub-frontend/pull/1519.patch","issue_url":"https://api.github.com/repos/uktrade/data-hub-frontend/issues/1519","number":1519,"state":"open","locked":false,"title":"Feature/dhi 70 add document input to form","user":{"login":"yozzo","id":1295319,"node_id":"MDQ6VXNlcjEyOTUzMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1295319?v=4","gravatar_id":"","url":"https://api.github.com/users/yozzo","html_url":"https://github.com/yozzo","followers_url":"https://api.github.com/users/yozzo/followers","following_url":"https://api.github.com/users/yozzo/following{/other_user}","gists_url":"https://api.github.com/users/yozzo/gists{/gist_id}","starred_url":"https://api.github.com/users/yozzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yozzo/subscriptions","organizations_url":"https://api.github.com/users/yozzo/orgs","repos_url":"https://api.github.com/users/yozzo/repos","events_url":"https://api.github.com/users/yozzo/events{/privacy}","received_events_url":"https://api.github.com/users/yozzo/received_events","type":"User","site_admin":false},"body":"<!--- Add Jira ticket number this work relates to at the beginning of the Title -->\r\n","created_at":"2018-08-06T15:29:11Z","updated_at":"2018-08-10T16:07:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8bb79b70edb5eaa4cec1d8d4b727cc23338229ff","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":605354223,"node_id":"MDU6TGFiZWw2MDUzNTQyMjM=","url":"https://api.github.com/repos/uktrade/data-hub-frontend/labels/WIP","name":"WIP","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/uktrade/data-hub-frontend/pulls/1519/commits","review_comments_url":"https://api.github.com/repos/uktrade/data-hub-frontend/pulls/1519/comments","review_comment_url":"https://api.github.com/repos/uktrade/data-hub-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uktrade/data-hub-frontend/issues/1519/comments","statuses_url":"https://api.github.com/repos/uktrade/data-hub-frontend/statuses/3f30fe37d1cbc7bc0b0b9fa153e8e015f107d904","head":{"label":"uktrade:feature/DHI-70-add-document-input-to-form","ref":"feature/DHI-70-add-document-input-to-form","sha":"3f30fe37d1cbc7bc0b0b9fa153e8e015f107d904","user":{"login":"uktrade","id":15107524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTA3NTI0","avatar_url":"https://avatars2.githubusercontent.com/u/15107524?v=4","gravatar_id":"","url":"https://api.github.com/users/uktrade","html_url":"https://github.com/uktrade","followers_url":"https://api.github.com/users/uktrade/followers","following_url":"https://api.github.com/users/uktrade/following{/other_user}","gists_url":"https://api.github.com/users/uktrade/gists{/gist_id}","starred_url":"https://api.github.com/users/uktrade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uktrade/subscriptions","organizations_url":"https://api.github.com/users/uktrade/orgs","repos_url":"https://api.github.com/users/uktrade/repos","events_url":"https://api.github.com/users/uktrade/events{/privacy}","received_events_url":"https://api.github.com/users/uktrade/received_events","type":"Organization","site_admin":false},"repo":{"id":83823675,"node_id":"MDEwOlJlcG9zaXRvcnk4MzgyMzY3NQ==","name":"data-hub-frontend","full_name":"uktrade/data-hub-frontend","owner":{"login":"uktrade","id":15107524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTA3NTI0","avatar_url":"https://avatars2.githubusercontent.com/u/15107524?v=4","gravatar_id":"","url":"https://api.github.com/users/uktrade","html_url":"https://github.com/uktrade","followers_url":"https://api.github.com/users/uktrade/followers","following_url":"https://api.github.com/users/uktrade/following{/other_user}","gists_url":"https://api.github.com/users/uktrade/gists{/gist_id}","starred_url":"https://api.github.com/users/uktrade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uktrade/subscriptions","organizations_url":"https://api.github.com/users/uktrade/orgs","repos_url":"https://api.github.com/users/uktrade/repos","events_url":"https://api.github.com/users/uktrade/events{/privacy}","received_events_url":"https://api.github.com/users/uktrade/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uktrade/data-hub-frontend","description":"The frontend rendering application for Data Hub","fork":false,"url":"https://api.github.com/repos/uktrade/data-hub-frontend","forks_url":"https://api.github.com/repos/uktrade/data-hub-frontend/forks","keys_url":"https://api.github.com/repos/uktrade/data-hub-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uktrade/data-hub-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uktrade/data-hub-frontend/teams","hooks_url":"https://api.github.com/repos/uktrade/data-hub-frontend/hooks","issue_events_url":"https://api.github.com/repos/uktrade/data-hub-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/uktrade/data-hub-frontend/events","assignees_url":"https://api.github.com/repos/uktrade/data-hub-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/uktrade/data-hub-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/uktrade/data-hub-frontend/tags","blobs_url":"https://api.github.com/repos/uktrade/data-hub-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uktrade/data-hub-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uktrade/data-hub-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/uktrade/data-hub-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uktrade/data-hub-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/uktrade/data-hub-frontend/languages","stargazers_url":"https://api.github.com/repos/uktrade/data-hub-frontend/stargazers","contributors_url":"https://api.github.com/repos/uktrade/data-hub-frontend/contributors","subscribers_url":"https://api.github.com/repos/uktrade/data-hub-frontend/subscribers","subscription_url":"https://api.github.com/repos/uktrade/data-hub-frontend/subscription","commits_url":"https://api.github.com/repos/uktrade/data-hub-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/uktrade/data-hub-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/uktrade/data-hub-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/uktrade/data-hub-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/uktrade/data-hub-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/uktrade/data-hub-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uktrade/data-hub-frontend/merges","archive_url":"https://api.github.com/repos/uktrade/data-hub-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uktrade/data-hub-frontend/downloads","issues_url":"https://api.github.com/repos/uktrade/data-hub-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/uktrade/data-hub-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/uktrade/data-hub-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/uktrade/data-hub-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uktrade/data-hub-frontend/labels{/name}","releases_url":"https://api.github.com/repos/uktrade/data-hub-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/uktrade/data-hub-frontend/deployments","created_at":"2017-03-03T17:26:35Z","updated_at":"2018-08-10T14:46:22Z","pushed_at":"2018-08-10T14:47:11Z","git_url":"git://github.com/uktrade/data-hub-frontend.git","ssh_url":"git@github.com:uktrade/data-hub-frontend.git","clone_url":"https://github.com/uktrade/data-hub-frontend.git","svn_url":"https://github.com/uktrade/data-hub-frontend","homepage":"","size":6298,"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":3,"mirror_url":null,"archived":false,"open_issues_count":27,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":27,"watchers":0,"default_branch":"develop"}},"base":{"label":"uktrade:develop","ref":"develop","sha":"6d9efa0ea5c372a54a2a209c96d39f128b723986","user":{"login":"uktrade","id":15107524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTA3NTI0","avatar_url":"https://avatars2.githubusercontent.com/u/15107524?v=4","gravatar_id":"","url":"https://api.github.com/users/uktrade","html_url":"https://github.com/uktrade","followers_url":"https://api.github.com/users/uktrade/followers","following_url":"https://api.github.com/users/uktrade/following{/other_user}","gists_url":"https://api.github.com/users/uktrade/gists{/gist_id}","starred_url":"https://api.github.com/users/uktrade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uktrade/subscriptions","organizations_url":"https://api.github.com/users/uktrade/orgs","repos_url":"https://api.github.com/users/uktrade/repos","events_url":"https://api.github.com/users/uktrade/events{/privacy}","received_events_url":"https://api.github.com/users/uktrade/received_events","type":"Organization","site_admin":false},"repo":{"id":83823675,"node_id":"MDEwOlJlcG9zaXRvcnk4MzgyMzY3NQ==","name":"data-hub-frontend","full_name":"uktrade/data-hub-frontend","owner":{"login":"uktrade","id":15107524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTA3NTI0","avatar_url":"https://avatars2.githubusercontent.com/u/15107524?v=4","gravatar_id":"","url":"https://api.github.com/users/uktrade","html_url":"https://github.com/uktrade","followers_url":"https://api.github.com/users/uktrade/followers","following_url":"https://api.github.com/users/uktrade/following{/other_user}","gists_url":"https://api.github.com/users/uktrade/gists{/gist_id}","starred_url":"https://api.github.com/users/uktrade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uktrade/subscriptions","organizations_url":"https://api.github.com/users/uktrade/orgs","repos_url":"https://api.github.com/users/uktrade/repos","events_url":"https://api.github.com/users/uktrade/events{/privacy}","received_events_url":"https://api.github.com/users/uktrade/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uktrade/data-hub-frontend","description":"The frontend rendering application for Data Hub","fork":false,"url":"https://api.github.com/repos/uktrade/data-hub-frontend","forks_url":"https://api.github.com/repos/uktrade/data-hub-frontend/forks","keys_url":"https://api.github.com/repos/uktrade/data-hub-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uktrade/data-hub-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uktrade/data-hub-frontend/teams","hooks_url":"https://api.github.com/repos/uktrade/data-hub-frontend/hooks","issue_events_url":"https://api.github.com/repos/uktrade/data-hub-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/uktrade/data-hub-frontend/events","assignees_url":"https://api.github.com/repos/uktrade/data-hub-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/uktrade/data-hub-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/uktrade/data-hub-frontend/tags","blobs_url":"https://api.github.com/repos/uktrade/data-hub-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uktrade/data-hub-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uktrade/data-hub-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/uktrade/data-hub-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uktrade/data-hub-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/uktrade/data-hub-frontend/languages","stargazers_url":"https://api.github.com/repos/uktrade/data-hub-frontend/stargazers","contributors_url":"https://api.github.com/repos/uktrade/data-hub-frontend/contributors","subscribers_url":"https://api.github.com/repos/uktrade/data-hub-frontend/subscribers","subscription_url":"https://api.github.com/repos/uktrade/data-hub-frontend/subscription","commits_url":"https://api.github.com/repos/uktrade/data-hub-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/uktrade/data-hub-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/uktrade/data-hub-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/uktrade/data-hub-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/uktrade/data-hub-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/uktrade/data-hub-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uktrade/data-hub-frontend/merges","archive_url":"https://api.github.com/repos/uktrade/data-hub-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uktrade/data-hub-frontend/downloads","issues_url":"https://api.github.com/repos/uktrade/data-hub-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/uktrade/data-hub-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/uktrade/data-hub-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/uktrade/data-hub-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uktrade/data-hub-frontend/labels{/name}","releases_url":"https://api.github.com/repos/uktrade/data-hub-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/uktrade/data-hub-frontend/deployments","created_at":"2017-03-03T17:26:35Z","updated_at":"2018-08-10T14:46:22Z","pushed_at":"2018-08-10T14:47:11Z","git_url":"git://github.com/uktrade/data-hub-frontend.git","ssh_url":"git@github.com:uktrade/data-hub-frontend.git","clone_url":"https://github.com/uktrade/data-hub-frontend.git","svn_url":"https://github.com/uktrade/data-hub-frontend","homepage":"","size":6298,"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":3,"mirror_url":null,"archived":false,"open_issues_count":27,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":27,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/uktrade/data-hub-frontend/pulls/1519"},"html":{"href":"https://github.com/uktrade/data-hub-frontend/pull/1519"},"issue":{"href":"https://api.github.com/repos/uktrade/data-hub-frontend/issues/1519"},"comments":{"href":"https://api.github.com/repos/uktrade/data-hub-frontend/issues/1519/comments"},"review_comments":{"href":"https://api.github.com/repos/uktrade/data-hub-frontend/pulls/1519/comments"},"review_comment":{"href":"https://api.github.com/repos/uktrade/data-hub-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uktrade/data-hub-frontend/pulls/1519/commits"},"statuses":{"href":"https://api.github.com/repos/uktrade/data-hub-frontend/statuses/3f30fe37d1cbc7bc0b0b9fa153e8e015f107d904"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"yeahfro"}}