{"action":"created","comment":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments/48639381","id":48639381,"diff_hunk":"@@ -24,61 +21,58 @@ describe('POST /groups', () => {\n       });\n     });\n \n-    it('returns a group object', () => {\n-      let group = {\n+    it('returns a group object', async () => {\n+      let group = await leader.post('/groups', {\n         name: 'Test Group',\n         type: 'party',\n         leaderOnly: { challenges: true },\n         description: 'Test Group Description',\n         leaderMessage: 'Test Group Message',\n-      };\n-\n-      return leader.post('/groups', group).then((createdGroup) => {\n-        expect(createdGroup._id).to.exist;\n-        expect(createdGroup.leader).to.eql(leader._id);\n-        expect(createdGroup.name).to.eql(group.name);\n-        expect(createdGroup.description).to.eql(group.description);\n-        expect(createdGroup.leaderMessage).to.eql(group.leaderMessage);\n-        expect(createdGroup.leaderOnly).to.eql(group.leaderOnly);\n-        expect(createdGroup.memberCount).to.eql(1);\n       });\n+\n+      expect(group._id).to.exist;\n+      expect(group.leader).to.eql(leader._id);\n+      expect(group.name).to.eql(group.name);\n+      expect(group.description).to.eql(group.description);\n+      expect(group.leaderMessage).to.eql(group.leaderMessage);\n+      expect(group.leaderOnly).to.eql(group.leaderOnly);\n+      expect(group.memberCount).to.eql(1);\n     });\n \n-    it('returns a populated members array', () => {\n-      return leader.post('/groups', {\n+    it('returns a populated members array', async () => {\n+      let party = await leader.post('/groups', {","path":"test/api/v2/groups/POST-groups.test.js","position":54,"original_position":54,"commit_id":"87f09ca2f0400e71b3c367cc883f511f8d5ea58c","original_commit_id":"87f09ca2f0400e71b3c367cc883f511f8d5ea58c","user":{"login":"crookedneighbor","id":2916945,"avatar_url":"https://avatars.githubusercontent.com/u/2916945?v=3","gravatar_id":"","url":"https://api.github.com/users/crookedneighbor","html_url":"https://github.com/crookedneighbor","followers_url":"https://api.github.com/users/crookedneighbor/followers","following_url":"https://api.github.com/users/crookedneighbor/following{/other_user}","gists_url":"https://api.github.com/users/crookedneighbor/gists{/gist_id}","starred_url":"https://api.github.com/users/crookedneighbor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crookedneighbor/subscriptions","organizations_url":"https://api.github.com/users/crookedneighbor/orgs","repos_url":"https://api.github.com/users/crookedneighbor/repos","events_url":"https://api.github.com/users/crookedneighbor/events{/privacy}","received_events_url":"https://api.github.com/users/crookedneighbor/received_events","type":"User","site_admin":false},"body":"It also makes the script I'm going to write to do this en masse much easier :stuck_out_tongue: ","created_at":"2015-12-30T23:31:21Z","updated_at":"2015-12-30T23:31:21Z","html_url":"https://github.com/HabitRPG/habitrpg/pull/6423#discussion_r48639381","pull_request_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6423","_links":{"self":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments/48639381"},"html":{"href":"https://github.com/HabitRPG/habitrpg/pull/6423#discussion_r48639381"},"pull_request":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6423"}}},"pull_request":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6423","id":54821063,"html_url":"https://github.com/HabitRPG/habitrpg/pull/6423","diff_url":"https://github.com/HabitRPG/habitrpg/pull/6423.diff","patch_url":"https://github.com/HabitRPG/habitrpg/pull/6423.patch","issue_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6423","number":6423,"state":"open","locked":false,"title":"tests(api): Convert new group tests to use async and await (ES7)","user":{"login":"crookedneighbor","id":2916945,"avatar_url":"https://avatars.githubusercontent.com/u/2916945?v=3","gravatar_id":"","url":"https://api.github.com/users/crookedneighbor","html_url":"https://github.com/crookedneighbor","followers_url":"https://api.github.com/users/crookedneighbor/followers","following_url":"https://api.github.com/users/crookedneighbor/following{/other_user}","gists_url":"https://api.github.com/users/crookedneighbor/gists{/gist_id}","starred_url":"https://api.github.com/users/crookedneighbor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crookedneighbor/subscriptions","organizations_url":"https://api.github.com/users/crookedneighbor/orgs","repos_url":"https://api.github.com/users/crookedneighbor/repos","events_url":"https://api.github.com/users/crookedneighbor/events{/privacy}","received_events_url":"https://api.github.com/users/crookedneighbor/received_events","type":"User","site_admin":false},"body":"@TheHollidayInn @KristianTashkov @paglias @SabreCat ","created_at":"2015-12-30T18:53:23Z","updated_at":"2015-12-30T23:31:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11d9ea6f667412fe385ccc3ab6438f66090d6513","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6423/commits","review_comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6423/comments","review_comment_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6423/comments","statuses_url":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/87f09ca2f0400e71b3c367cc883f511f8d5ea58c","head":{"label":"crookedneighbor:test_with_async_and_await","ref":"test_with_async_and_await","sha":"87f09ca2f0400e71b3c367cc883f511f8d5ea58c","user":{"login":"crookedneighbor","id":2916945,"avatar_url":"https://avatars.githubusercontent.com/u/2916945?v=3","gravatar_id":"","url":"https://api.github.com/users/crookedneighbor","html_url":"https://github.com/crookedneighbor","followers_url":"https://api.github.com/users/crookedneighbor/followers","following_url":"https://api.github.com/users/crookedneighbor/following{/other_user}","gists_url":"https://api.github.com/users/crookedneighbor/gists{/gist_id}","starred_url":"https://api.github.com/users/crookedneighbor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crookedneighbor/subscriptions","organizations_url":"https://api.github.com/users/crookedneighbor/orgs","repos_url":"https://api.github.com/users/crookedneighbor/repos","events_url":"https://api.github.com/users/crookedneighbor/events{/privacy}","received_events_url":"https://api.github.com/users/crookedneighbor/received_events","type":"User","site_admin":false},"repo":{"id":21923397,"name":"habitrpg","full_name":"crookedneighbor/habitrpg","owner":{"login":"crookedneighbor","id":2916945,"avatar_url":"https://avatars.githubusercontent.com/u/2916945?v=3","gravatar_id":"","url":"https://api.github.com/users/crookedneighbor","html_url":"https://github.com/crookedneighbor","followers_url":"https://api.github.com/users/crookedneighbor/followers","following_url":"https://api.github.com/users/crookedneighbor/following{/other_user}","gists_url":"https://api.github.com/users/crookedneighbor/gists{/gist_id}","starred_url":"https://api.github.com/users/crookedneighbor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crookedneighbor/subscriptions","organizations_url":"https://api.github.com/users/crookedneighbor/orgs","repos_url":"https://api.github.com/users/crookedneighbor/repos","events_url":"https://api.github.com/users/crookedneighbor/events{/privacy}","received_events_url":"https://api.github.com/users/crookedneighbor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crookedneighbor/habitrpg","description":"A habit tracker app which treats your goals like a Role Playing Game.","fork":true,"url":"https://api.github.com/repos/crookedneighbor/habitrpg","forks_url":"https://api.github.com/repos/crookedneighbor/habitrpg/forks","keys_url":"https://api.github.com/repos/crookedneighbor/habitrpg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crookedneighbor/habitrpg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crookedneighbor/habitrpg/teams","hooks_url":"https://api.github.com/repos/crookedneighbor/habitrpg/hooks","issue_events_url":"https://api.github.com/repos/crookedneighbor/habitrpg/issues/events{/number}","events_url":"https://api.github.com/repos/crookedneighbor/habitrpg/events","assignees_url":"https://api.github.com/repos/crookedneighbor/habitrpg/assignees{/user}","branches_url":"https://api.github.com/repos/crookedneighbor/habitrpg/branches{/branch}","tags_url":"https://api.github.com/repos/crookedneighbor/habitrpg/tags","blobs_url":"https://api.github.com/repos/crookedneighbor/habitrpg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crookedneighbor/habitrpg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crookedneighbor/habitrpg/git/refs{/sha}","trees_url":"https://api.github.com/repos/crookedneighbor/habitrpg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crookedneighbor/habitrpg/statuses/{sha}","languages_url":"https://api.github.com/repos/crookedneighbor/habitrpg/languages","stargazers_url":"https://api.github.com/repos/crookedneighbor/habitrpg/stargazers","contributors_url":"https://api.github.com/repos/crookedneighbor/habitrpg/contributors","subscribers_url":"https://api.github.com/repos/crookedneighbor/habitrpg/subscribers","subscription_url":"https://api.github.com/repos/crookedneighbor/habitrpg/subscription","commits_url":"https://api.github.com/repos/crookedneighbor/habitrpg/commits{/sha}","git_commits_url":"https://api.github.com/repos/crookedneighbor/habitrpg/git/commits{/sha}","comments_url":"https://api.github.com/repos/crookedneighbor/habitrpg/comments{/number}","issue_comment_url":"https://api.github.com/repos/crookedneighbor/habitrpg/issues/comments{/number}","contents_url":"https://api.github.com/repos/crookedneighbor/habitrpg/contents/{+path}","compare_url":"https://api.github.com/repos/crookedneighbor/habitrpg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crookedneighbor/habitrpg/merges","archive_url":"https://api.github.com/repos/crookedneighbor/habitrpg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crookedneighbor/habitrpg/downloads","issues_url":"https://api.github.com/repos/crookedneighbor/habitrpg/issues{/number}","pulls_url":"https://api.github.com/repos/crookedneighbor/habitrpg/pulls{/number}","milestones_url":"https://api.github.com/repos/crookedneighbor/habitrpg/milestones{/number}","notifications_url":"https://api.github.com/repos/crookedneighbor/habitrpg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crookedneighbor/habitrpg/labels{/name}","releases_url":"https://api.github.com/repos/crookedneighbor/habitrpg/releases{/id}","created_at":"2014-07-17T00:47:35Z","updated_at":"2015-07-25T03:10:45Z","pushed_at":"2015-12-30T18:52:58Z","git_url":"git://github.com/crookedneighbor/habitrpg.git","ssh_url":"git@github.com:crookedneighbor/habitrpg.git","clone_url":"https://github.com/crookedneighbor/habitrpg.git","svn_url":"https://github.com/crookedneighbor/habitrpg","homepage":"habitrpg.com","size":305537,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"HabitRPG:develop","ref":"develop","sha":"802bb93b6c3a51567a2dbbab18d349312d7bb324","user":{"login":"HabitRPG","id":3834775,"avatar_url":"https://avatars.githubusercontent.com/u/3834775?v=3","gravatar_id":"","url":"https://api.github.com/users/HabitRPG","html_url":"https://github.com/HabitRPG","followers_url":"https://api.github.com/users/HabitRPG/followers","following_url":"https://api.github.com/users/HabitRPG/following{/other_user}","gists_url":"https://api.github.com/users/HabitRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/HabitRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HabitRPG/subscriptions","organizations_url":"https://api.github.com/users/HabitRPG/orgs","repos_url":"https://api.github.com/users/HabitRPG/repos","events_url":"https://api.github.com/users/HabitRPG/events{/privacy}","received_events_url":"https://api.github.com/users/HabitRPG/received_events","type":"Organization","site_admin":false},"repo":{"id":4578898,"name":"habitrpg","full_name":"HabitRPG/habitrpg","owner":{"login":"HabitRPG","id":3834775,"avatar_url":"https://avatars.githubusercontent.com/u/3834775?v=3","gravatar_id":"","url":"https://api.github.com/users/HabitRPG","html_url":"https://github.com/HabitRPG","followers_url":"https://api.github.com/users/HabitRPG/followers","following_url":"https://api.github.com/users/HabitRPG/following{/other_user}","gists_url":"https://api.github.com/users/HabitRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/HabitRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HabitRPG/subscriptions","organizations_url":"https://api.github.com/users/HabitRPG/orgs","repos_url":"https://api.github.com/users/HabitRPG/repos","events_url":"https://api.github.com/users/HabitRPG/events{/privacy}","received_events_url":"https://api.github.com/users/HabitRPG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HabitRPG/habitrpg","description":"A habit tracker app which treats your goals like a Role Playing Game.","fork":false,"url":"https://api.github.com/repos/HabitRPG/habitrpg","forks_url":"https://api.github.com/repos/HabitRPG/habitrpg/forks","keys_url":"https://api.github.com/repos/HabitRPG/habitrpg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HabitRPG/habitrpg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HabitRPG/habitrpg/teams","hooks_url":"https://api.github.com/repos/HabitRPG/habitrpg/hooks","issue_events_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/events{/number}","events_url":"https://api.github.com/repos/HabitRPG/habitrpg/events","assignees_url":"https://api.github.com/repos/HabitRPG/habitrpg/assignees{/user}","branches_url":"https://api.github.com/repos/HabitRPG/habitrpg/branches{/branch}","tags_url":"https://api.github.com/repos/HabitRPG/habitrpg/tags","blobs_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/refs{/sha}","trees_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/{sha}","languages_url":"https://api.github.com/repos/HabitRPG/habitrpg/languages","stargazers_url":"https://api.github.com/repos/HabitRPG/habitrpg/stargazers","contributors_url":"https://api.github.com/repos/HabitRPG/habitrpg/contributors","subscribers_url":"https://api.github.com/repos/HabitRPG/habitrpg/subscribers","subscription_url":"https://api.github.com/repos/HabitRPG/habitrpg/subscription","commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/commits{/sha}","git_commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/commits{/sha}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/comments{/number}","issue_comment_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/comments{/number}","contents_url":"https://api.github.com/repos/HabitRPG/habitrpg/contents/{+path}","compare_url":"https://api.github.com/repos/HabitRPG/habitrpg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HabitRPG/habitrpg/merges","archive_url":"https://api.github.com/repos/HabitRPG/habitrpg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HabitRPG/habitrpg/downloads","issues_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues{/number}","pulls_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls{/number}","milestones_url":"https://api.github.com/repos/HabitRPG/habitrpg/milestones{/number}","notifications_url":"https://api.github.com/repos/HabitRPG/habitrpg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HabitRPG/habitrpg/labels{/name}","releases_url":"https://api.github.com/repos/HabitRPG/habitrpg/releases{/id}","created_at":"2012-06-06T22:49:48Z","updated_at":"2015-12-29T15:54:20Z","pushed_at":"2015-12-30T22:54:13Z","git_url":"git://github.com/HabitRPG/habitrpg.git","ssh_url":"git@github.com:HabitRPG/habitrpg.git","clone_url":"https://github.com/HabitRPG/habitrpg.git","svn_url":"https://github.com/HabitRPG/habitrpg","homepage":"https://habitica.com","size":320902,"stargazers_count":3350,"watchers_count":3350,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1394,"mirror_url":null,"open_issues_count":440,"forks":1394,"open_issues":440,"watchers":3350,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6423"},"html":{"href":"https://github.com/HabitRPG/habitrpg/pull/6423"},"issue":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6423"},"comments":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6423/comments"},"review_comments":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6423/comments"},"review_comment":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6423/commits"},"statuses":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/87f09ca2f0400e71b3c367cc883f511f8d5ea58c"}}}}