{"action":"created","comment":{"url":"https://api.github.com/repos/contentful/contentful.js/pulls/comments/78164910","id":78164910,"diff_hunk":"@@ -352,3 +352,65 @@ test('CDA call sync fails', (t) => {\n     teardown()\n   })\n })\n+\n+test('Given json should be parsed correctly as a collection of entries', (t) => {\n+  const client = contentful.createClient({accessToken: 'blablabla', space: 'bla'})","path":"test/unit/create-contentful-api-test.js","position":14,"original_position":14,"commit_id":"30a273e4051f31b9348a8038397493b4b490f9ec","original_commit_id":"30a273e4051f31b9348a8038397493b4b490f9ec","user":{"login":"stefanjudis","id":962099,"avatar_url":"https://avatars.githubusercontent.com/u/962099?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanjudis","html_url":"https://github.com/stefanjudis","followers_url":"https://api.github.com/users/stefanjudis/followers","following_url":"https://api.github.com/users/stefanjudis/following{/other_user}","gists_url":"https://api.github.com/users/stefanjudis/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanjudis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanjudis/subscriptions","organizations_url":"https://api.github.com/users/stefanjudis/orgs","repos_url":"https://api.github.com/users/stefanjudis/repos","events_url":"https://api.github.com/users/stefanjudis/events{/privacy}","received_events_url":"https://api.github.com/users/stefanjudis/received_events","type":"User","site_admin":false},"body":"I think we shouldn't do it like that here.\r\n\r\nall the other test cases use something like\r\n\r\n```\r\nconst {api} = setupWithData({\r\n    promise: Promise.resolve({ data: contentTypeMock })\r\n})\r\nentitiesMock.contentType.wrapContentType.returns(contentTypeMock)\r\n\r\nreturn api.getContentType('ctid')\r\n```\r\n\r\nfor the matter of consistency and to have on less file to load ( 'require( '../../' )? ) it might make sense to use the same approach here.","created_at":"2016-09-09T11:25:52Z","updated_at":"2016-09-09T11:25:52Z","html_url":"https://github.com/contentful/contentful.js/pull/90#discussion_r78164910","pull_request_url":"https://api.github.com/repos/contentful/contentful.js/pulls/90","_links":{"self":{"href":"https://api.github.com/repos/contentful/contentful.js/pulls/comments/78164910"},"html":{"href":"https://github.com/contentful/contentful.js/pull/90#discussion_r78164910"},"pull_request":{"href":"https://api.github.com/repos/contentful/contentful.js/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/contentful/contentful.js/pulls/90","id":84625826,"html_url":"https://github.com/contentful/contentful.js/pull/90","diff_url":"https://github.com/contentful/contentful.js/pull/90.diff","patch_url":"https://github.com/contentful/contentful.js/pull/90.patch","issue_url":"https://api.github.com/repos/contentful/contentful.js/issues/90","number":90,"state":"open","locked":false,"title":"feat(entities): add parseEntities method","user":{"login":"Khaledgarbaya","id":1156093,"avatar_url":"https://avatars.githubusercontent.com/u/1156093?v=3","gravatar_id":"","url":"https://api.github.com/users/Khaledgarbaya","html_url":"https://github.com/Khaledgarbaya","followers_url":"https://api.github.com/users/Khaledgarbaya/followers","following_url":"https://api.github.com/users/Khaledgarbaya/following{/other_user}","gists_url":"https://api.github.com/users/Khaledgarbaya/gists{/gist_id}","starred_url":"https://api.github.com/users/Khaledgarbaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Khaledgarbaya/subscriptions","organizations_url":"https://api.github.com/users/Khaledgarbaya/orgs","repos_url":"https://api.github.com/users/Khaledgarbaya/repos","events_url":"https://api.github.com/users/Khaledgarbaya/events{/privacy}","received_events_url":"https://api.github.com/users/Khaledgarbaya/received_events","type":"User","site_admin":false},"body":"@stefanjudis could you take a look","created_at":"2016-09-09T10:10:12Z","updated_at":"2016-09-09T11:25:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"682f03d86da61cdf22f4eb370c63cfa73575fabf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/contentful/contentful.js/pulls/90/commits","review_comments_url":"https://api.github.com/repos/contentful/contentful.js/pulls/90/comments","review_comment_url":"https://api.github.com/repos/contentful/contentful.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/contentful/contentful.js/issues/90/comments","statuses_url":"https://api.github.com/repos/contentful/contentful.js/statuses/30a273e4051f31b9348a8038397493b4b490f9ec","head":{"label":"contentful:feature/parseEntities","ref":"feature/parseEntities","sha":"30a273e4051f31b9348a8038397493b4b490f9ec","user":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"repo":{"id":10756392,"name":"contentful.js","full_name":"contentful/contentful.js","owner":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contentful/contentful.js","description":"JavaScript library for Contentful's Delivery API (node & browser)","fork":false,"url":"https://api.github.com/repos/contentful/contentful.js","forks_url":"https://api.github.com/repos/contentful/contentful.js/forks","keys_url":"https://api.github.com/repos/contentful/contentful.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contentful/contentful.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contentful/contentful.js/teams","hooks_url":"https://api.github.com/repos/contentful/contentful.js/hooks","issue_events_url":"https://api.github.com/repos/contentful/contentful.js/issues/events{/number}","events_url":"https://api.github.com/repos/contentful/contentful.js/events","assignees_url":"https://api.github.com/repos/contentful/contentful.js/assignees{/user}","branches_url":"https://api.github.com/repos/contentful/contentful.js/branches{/branch}","tags_url":"https://api.github.com/repos/contentful/contentful.js/tags","blobs_url":"https://api.github.com/repos/contentful/contentful.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contentful/contentful.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contentful/contentful.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/contentful/contentful.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contentful/contentful.js/statuses/{sha}","languages_url":"https://api.github.com/repos/contentful/contentful.js/languages","stargazers_url":"https://api.github.com/repos/contentful/contentful.js/stargazers","contributors_url":"https://api.github.com/repos/contentful/contentful.js/contributors","subscribers_url":"https://api.github.com/repos/contentful/contentful.js/subscribers","subscription_url":"https://api.github.com/repos/contentful/contentful.js/subscription","commits_url":"https://api.github.com/repos/contentful/contentful.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/contentful/contentful.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/contentful/contentful.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/contentful/contentful.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/contentful/contentful.js/contents/{+path}","compare_url":"https://api.github.com/repos/contentful/contentful.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contentful/contentful.js/merges","archive_url":"https://api.github.com/repos/contentful/contentful.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contentful/contentful.js/downloads","issues_url":"https://api.github.com/repos/contentful/contentful.js/issues{/number}","pulls_url":"https://api.github.com/repos/contentful/contentful.js/pulls{/number}","milestones_url":"https://api.github.com/repos/contentful/contentful.js/milestones{/number}","notifications_url":"https://api.github.com/repos/contentful/contentful.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contentful/contentful.js/labels{/name}","releases_url":"https://api.github.com/repos/contentful/contentful.js/releases{/id}","deployments_url":"https://api.github.com/repos/contentful/contentful.js/deployments","created_at":"2013-06-18T07:22:56Z","updated_at":"2016-09-08T09:19:37Z","pushed_at":"2016-09-09T10:10:13Z","git_url":"git://github.com/contentful/contentful.js.git","ssh_url":"git@github.com:contentful/contentful.js.git","clone_url":"https://github.com/contentful/contentful.js.git","svn_url":"https://github.com/contentful/contentful.js","homepage":"https://www.contentful.com/developers","size":1957,"stargazers_count":133,"watchers_count":133,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":31,"mirror_url":null,"open_issues_count":6,"forks":31,"open_issues":6,"watchers":133,"default_branch":"master"}},"base":{"label":"contentful:master","ref":"master","sha":"f40bcd0072beb3baac78a5a837bf455561eb09e5","user":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"repo":{"id":10756392,"name":"contentful.js","full_name":"contentful/contentful.js","owner":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contentful/contentful.js","description":"JavaScript library for Contentful's Delivery API (node & browser)","fork":false,"url":"https://api.github.com/repos/contentful/contentful.js","forks_url":"https://api.github.com/repos/contentful/contentful.js/forks","keys_url":"https://api.github.com/repos/contentful/contentful.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contentful/contentful.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contentful/contentful.js/teams","hooks_url":"https://api.github.com/repos/contentful/contentful.js/hooks","issue_events_url":"https://api.github.com/repos/contentful/contentful.js/issues/events{/number}","events_url":"https://api.github.com/repos/contentful/contentful.js/events","assignees_url":"https://api.github.com/repos/contentful/contentful.js/assignees{/user}","branches_url":"https://api.github.com/repos/contentful/contentful.js/branches{/branch}","tags_url":"https://api.github.com/repos/contentful/contentful.js/tags","blobs_url":"https://api.github.com/repos/contentful/contentful.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contentful/contentful.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contentful/contentful.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/contentful/contentful.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contentful/contentful.js/statuses/{sha}","languages_url":"https://api.github.com/repos/contentful/contentful.js/languages","stargazers_url":"https://api.github.com/repos/contentful/contentful.js/stargazers","contributors_url":"https://api.github.com/repos/contentful/contentful.js/contributors","subscribers_url":"https://api.github.com/repos/contentful/contentful.js/subscribers","subscription_url":"https://api.github.com/repos/contentful/contentful.js/subscription","commits_url":"https://api.github.com/repos/contentful/contentful.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/contentful/contentful.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/contentful/contentful.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/contentful/contentful.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/contentful/contentful.js/contents/{+path}","compare_url":"https://api.github.com/repos/contentful/contentful.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contentful/contentful.js/merges","archive_url":"https://api.github.com/repos/contentful/contentful.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contentful/contentful.js/downloads","issues_url":"https://api.github.com/repos/contentful/contentful.js/issues{/number}","pulls_url":"https://api.github.com/repos/contentful/contentful.js/pulls{/number}","milestones_url":"https://api.github.com/repos/contentful/contentful.js/milestones{/number}","notifications_url":"https://api.github.com/repos/contentful/contentful.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contentful/contentful.js/labels{/name}","releases_url":"https://api.github.com/repos/contentful/contentful.js/releases{/id}","deployments_url":"https://api.github.com/repos/contentful/contentful.js/deployments","created_at":"2013-06-18T07:22:56Z","updated_at":"2016-09-08T09:19:37Z","pushed_at":"2016-09-09T10:10:13Z","git_url":"git://github.com/contentful/contentful.js.git","ssh_url":"git@github.com:contentful/contentful.js.git","clone_url":"https://github.com/contentful/contentful.js.git","svn_url":"https://github.com/contentful/contentful.js","homepage":"https://www.contentful.com/developers","size":1957,"stargazers_count":133,"watchers_count":133,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":31,"mirror_url":null,"open_issues_count":6,"forks":31,"open_issues":6,"watchers":133,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/contentful/contentful.js/pulls/90"},"html":{"href":"https://github.com/contentful/contentful.js/pull/90"},"issue":{"href":"https://api.github.com/repos/contentful/contentful.js/issues/90"},"comments":{"href":"https://api.github.com/repos/contentful/contentful.js/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/contentful/contentful.js/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/contentful/contentful.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/contentful/contentful.js/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/contentful/contentful.js/statuses/30a273e4051f31b9348a8038397493b4b490f9ec"}}}}
{"actor":{"display_login":"stefanjudis"}}