{"action":"created","comment":{"url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/pulls/comments/36749911","id":36749911,"diff_hunk":"@@ -14,18 +14,12 @@ var genUser = function() {\n };\n \n describe('User Model', function() {\n-  before(function() {\n-    // Clear users before testing\n-    return User.removeAsync();\n-  });\n+  // Clear users before testing\n+  before(User.removeAsync);","path":"app/templates/server/api/user(auth)/user.model.spec(mongooseModels).js","position":null,"original_position":9,"commit_id":"3feb92a5d9acb5214b38640e0cb43e57a18aeb40","original_commit_id":"e0c7917ea2a84e0b995b16fed18602f523205b5b","user":{"login":"Awk34","id":5545474,"avatar_url":"https://avatars.githubusercontent.com/u/5545474?v=3","gravatar_id":"","url":"https://api.github.com/users/Awk34","html_url":"https://github.com/Awk34","followers_url":"https://api.github.com/users/Awk34/followers","following_url":"https://api.github.com/users/Awk34/following{/other_user}","gists_url":"https://api.github.com/users/Awk34/gists{/gist_id}","starred_url":"https://api.github.com/users/Awk34/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Awk34/subscriptions","organizations_url":"https://api.github.com/users/Awk34/orgs","repos_url":"https://api.github.com/users/Awk34/repos","events_url":"https://api.github.com/users/Awk34/events{/privacy}","received_events_url":"https://api.github.com/users/Awk34/received_events","type":"User","site_admin":false},"body":"Babel supports `::User.removeAsync` too, right?","created_at":"2015-08-11T14:21:18Z","updated_at":"2015-08-11T14:21:18Z","html_url":"https://github.com/DaftMonk/generator-angular-fullstack/pull/1150#discussion_r36749911","pull_request_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/pulls/1150","_links":{"self":{"href":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/pulls/comments/36749911"},"html":{"href":"https://github.com/DaftMonk/generator-angular-fullstack/pull/1150#discussion_r36749911"},"pull_request":{"href":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/pulls/1150"}}},"pull_request":{"url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/pulls/1150","id":42061458,"html_url":"https://github.com/DaftMonk/generator-angular-fullstack/pull/1150","diff_url":"https://github.com/DaftMonk/generator-angular-fullstack/pull/1150.diff","patch_url":"https://github.com/DaftMonk/generator-angular-fullstack/pull/1150.patch","issue_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/1150","number":1150,"state":"open","locked":false,"title":"refactor(user.model.spec): reduce callback hell","user":{"login":"deltreey","id":585755,"avatar_url":"https://avatars.githubusercontent.com/u/585755?v=3","gravatar_id":"","url":"https://api.github.com/users/deltreey","html_url":"https://github.com/deltreey","followers_url":"https://api.github.com/users/deltreey/followers","following_url":"https://api.github.com/users/deltreey/following{/other_user}","gists_url":"https://api.github.com/users/deltreey/gists{/gist_id}","starred_url":"https://api.github.com/users/deltreey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deltreey/subscriptions","organizations_url":"https://api.github.com/users/deltreey/orgs","repos_url":"https://api.github.com/users/deltreey/repos","events_url":"https://api.github.com/users/deltreey/events{/privacy}","received_events_url":"https://api.github.com/users/deltreey/received_events","type":"User","site_admin":false},"body":"by passing functions and reducing function wrapping we can keep complexity low and make\r\neverything cleaner and more readable\r\n\r\nthis is a small change, just the user model tests.  If you guys like this style I can expand upon it, either making this PR larger or by making another.  Let me know. :+1: ","created_at":"2015-08-10T20:19:58Z","updated_at":"2015-08-11T14:21:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b78188153f668e2b685e04e1ac838d6236e1c66d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/pulls/1150/commits","review_comments_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/pulls/1150/comments","review_comment_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/1150/comments","statuses_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/statuses/3feb92a5d9acb5214b38640e0cb43e57a18aeb40","head":{"label":"deltreey:canary","ref":"canary","sha":"3feb92a5d9acb5214b38640e0cb43e57a18aeb40","user":{"login":"deltreey","id":585755,"avatar_url":"https://avatars.githubusercontent.com/u/585755?v=3","gravatar_id":"","url":"https://api.github.com/users/deltreey","html_url":"https://github.com/deltreey","followers_url":"https://api.github.com/users/deltreey/followers","following_url":"https://api.github.com/users/deltreey/following{/other_user}","gists_url":"https://api.github.com/users/deltreey/gists{/gist_id}","starred_url":"https://api.github.com/users/deltreey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deltreey/subscriptions","organizations_url":"https://api.github.com/users/deltreey/orgs","repos_url":"https://api.github.com/users/deltreey/repos","events_url":"https://api.github.com/users/deltreey/events{/privacy}","received_events_url":"https://api.github.com/users/deltreey/received_events","type":"User","site_admin":false},"repo":{"id":24473153,"name":"generator-angular-fullstack","full_name":"deltreey/generator-angular-fullstack","owner":{"login":"deltreey","id":585755,"avatar_url":"https://avatars.githubusercontent.com/u/585755?v=3","gravatar_id":"","url":"https://api.github.com/users/deltreey","html_url":"https://github.com/deltreey","followers_url":"https://api.github.com/users/deltreey/followers","following_url":"https://api.github.com/users/deltreey/following{/other_user}","gists_url":"https://api.github.com/users/deltreey/gists{/gist_id}","starred_url":"https://api.github.com/users/deltreey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deltreey/subscriptions","organizations_url":"https://api.github.com/users/deltreey/orgs","repos_url":"https://api.github.com/users/deltreey/repos","events_url":"https://api.github.com/users/deltreey/events{/privacy}","received_events_url":"https://api.github.com/users/deltreey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deltreey/generator-angular-fullstack","description":"Yeoman generator for AngularJS with an Express server","fork":true,"url":"https://api.github.com/repos/deltreey/generator-angular-fullstack","forks_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/forks","keys_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/teams","hooks_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/hooks","issue_events_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/issues/events{/number}","events_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/events","assignees_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/assignees{/user}","branches_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/branches{/branch}","tags_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/tags","blobs_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/statuses/{sha}","languages_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/languages","stargazers_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/stargazers","contributors_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/contributors","subscribers_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/subscribers","subscription_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/subscription","commits_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/contents/{+path}","compare_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/merges","archive_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/downloads","issues_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/issues{/number}","pulls_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/pulls{/number}","milestones_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/milestones{/number}","notifications_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/labels{/name}","releases_url":"https://api.github.com/repos/deltreey/generator-angular-fullstack/releases{/id}","created_at":"2014-09-25T19:59:03Z","updated_at":"2015-08-10T17:59:14Z","pushed_at":"2015-08-10T21:15:18Z","git_url":"git://github.com/deltreey/generator-angular-fullstack.git","ssh_url":"git@github.com:deltreey/generator-angular-fullstack.git","clone_url":"https://github.com/deltreey/generator-angular-fullstack.git","svn_url":"https://github.com/deltreey/generator-angular-fullstack","homepage":"http://yeoman.io","size":5157,"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":"master"}},"base":{"label":"DaftMonk:canary","ref":"canary","sha":"f0ec5639543916557e3f75f72ea9adccdbd7361c","user":{"login":"DaftMonk","id":2505273,"avatar_url":"https://avatars.githubusercontent.com/u/2505273?v=3","gravatar_id":"","url":"https://api.github.com/users/DaftMonk","html_url":"https://github.com/DaftMonk","followers_url":"https://api.github.com/users/DaftMonk/followers","following_url":"https://api.github.com/users/DaftMonk/following{/other_user}","gists_url":"https://api.github.com/users/DaftMonk/gists{/gist_id}","starred_url":"https://api.github.com/users/DaftMonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaftMonk/subscriptions","organizations_url":"https://api.github.com/users/DaftMonk/orgs","repos_url":"https://api.github.com/users/DaftMonk/repos","events_url":"https://api.github.com/users/DaftMonk/events{/privacy}","received_events_url":"https://api.github.com/users/DaftMonk/received_events","type":"User","site_admin":false},"repo":{"id":13911118,"name":"generator-angular-fullstack","full_name":"DaftMonk/generator-angular-fullstack","owner":{"login":"DaftMonk","id":2505273,"avatar_url":"https://avatars.githubusercontent.com/u/2505273?v=3","gravatar_id":"","url":"https://api.github.com/users/DaftMonk","html_url":"https://github.com/DaftMonk","followers_url":"https://api.github.com/users/DaftMonk/followers","following_url":"https://api.github.com/users/DaftMonk/following{/other_user}","gists_url":"https://api.github.com/users/DaftMonk/gists{/gist_id}","starred_url":"https://api.github.com/users/DaftMonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaftMonk/subscriptions","organizations_url":"https://api.github.com/users/DaftMonk/orgs","repos_url":"https://api.github.com/users/DaftMonk/repos","events_url":"https://api.github.com/users/DaftMonk/events{/privacy}","received_events_url":"https://api.github.com/users/DaftMonk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DaftMonk/generator-angular-fullstack","description":"Yeoman generator for AngularJS with an Express server","fork":true,"url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack","forks_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/forks","keys_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/teams","hooks_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/hooks","issue_events_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/events{/number}","events_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/events","assignees_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/assignees{/user}","branches_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/branches{/branch}","tags_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/tags","blobs_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/statuses/{sha}","languages_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/languages","stargazers_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/stargazers","contributors_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/contributors","subscribers_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/subscribers","subscription_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/subscription","commits_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/contents/{+path}","compare_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/merges","archive_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/downloads","issues_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues{/number}","pulls_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/pulls{/number}","milestones_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/milestones{/number}","notifications_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/labels{/name}","releases_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/releases{/id}","created_at":"2013-10-27T21:56:18Z","updated_at":"2015-08-11T08:56:47Z","pushed_at":"2015-08-11T09:08:07Z","git_url":"git://github.com/DaftMonk/generator-angular-fullstack.git","ssh_url":"git@github.com:DaftMonk/generator-angular-fullstack.git","clone_url":"https://github.com/DaftMonk/generator-angular-fullstack.git","svn_url":"https://github.com/DaftMonk/generator-angular-fullstack","homepage":"http://yeoman.io","size":13757,"stargazers_count":3654,"watchers_count":3654,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":698,"mirror_url":null,"open_issues_count":197,"forks":698,"open_issues":197,"watchers":3654,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/pulls/1150"},"html":{"href":"https://github.com/DaftMonk/generator-angular-fullstack/pull/1150"},"issue":{"href":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/1150"},"comments":{"href":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/1150/comments"},"review_comments":{"href":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/pulls/1150/comments"},"review_comment":{"href":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/pulls/1150/commits"},"statuses":{"href":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/statuses/3feb92a5d9acb5214b38640e0cb43e57a18aeb40"}}}}