{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/ava/pulls/comments/55022645","id":55022645,"diff_hunk":"@@ -18,22 +23,45 @@ function MiniReporter() {\n module.exports = MiniReporter;\n \n MiniReporter.prototype.start = function () {\n-\treturn '';\n+\tvar self = this;\n+\tthis.interval = setInterval(function () {\n+\t\tself.spinnerFrame = (self.spinnerFrame + 1) % self.spinnerFrames.length;\n+\t\tself.write(self.spinnerChar() + self.currentTest);","path":"lib/reporters/mini.js","position":27,"original_position":27,"commit_id":"1ac3ea2decb4f6da1c2214161b16c0b95eda5f9d","original_commit_id":"1ac3ea2decb4f6da1c2214161b16c0b95eda5f9d","user":{"login":"novemberborn","id":33538,"avatar_url":"https://avatars.githubusercontent.com/u/33538?v=3","gravatar_id":"","url":"https://api.github.com/users/novemberborn","html_url":"https://github.com/novemberborn","followers_url":"https://api.github.com/users/novemberborn/followers","following_url":"https://api.github.com/users/novemberborn/following{/other_user}","gists_url":"https://api.github.com/users/novemberborn/gists{/gist_id}","starred_url":"https://api.github.com/users/novemberborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novemberborn/subscriptions","organizations_url":"https://api.github.com/users/novemberborn/orgs","repos_url":"https://api.github.com/users/novemberborn/repos","events_url":"https://api.github.com/users/novemberborn/events{/privacy}","received_events_url":"https://api.github.com/users/novemberborn/received_events","type":"User","site_admin":false},"body":"Could abstract that into `writeStatusWithSpinner()` or something.","created_at":"2016-03-04T12:08:28Z","updated_at":"2016-03-04T12:08:28Z","html_url":"https://github.com/sindresorhus/ava/pull/599#discussion_r55022645","pull_request_url":"https://api.github.com/repos/sindresorhus/ava/pulls/599","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/ava/pulls/comments/55022645"},"html":{"href":"https://github.com/sindresorhus/ava/pull/599#discussion_r55022645"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/ava/pulls/599"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/ava/pulls/599","id":61640049,"html_url":"https://github.com/sindresorhus/ava/pull/599","diff_url":"https://github.com/sindresorhus/ava/pull/599.diff","patch_url":"https://github.com/sindresorhus/ava/pull/599.patch","issue_url":"https://api.github.com/repos/sindresorhus/ava/issues/599","number":599,"state":"open","locked":false,"title":"Add busy indicator to mini reporter. Fixes #598.","user":{"login":"jamestalmage","id":4082216,"avatar_url":"https://avatars.githubusercontent.com/u/4082216?v=3","gravatar_id":"","url":"https://api.github.com/users/jamestalmage","html_url":"https://github.com/jamestalmage","followers_url":"https://api.github.com/users/jamestalmage/followers","following_url":"https://api.github.com/users/jamestalmage/following{/other_user}","gists_url":"https://api.github.com/users/jamestalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/jamestalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamestalmage/subscriptions","organizations_url":"https://api.github.com/users/jamestalmage/orgs","repos_url":"https://api.github.com/users/jamestalmage/repos","events_url":"https://api.github.com/users/jamestalmage/events{/privacy}","received_events_url":"https://api.github.com/users/jamestalmage/received_events","type":"User","site_admin":false},"body":"Add a spinner to the mini reporter to indicate ongoing test progress.\n\nFixes #598.","created_at":"2016-03-03T22:56:42Z","updated_at":"2016-03-04T12:08:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c547477441686e072b1860d772d22ca297a198bf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/ava/pulls/599/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/ava/pulls/599/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/ava/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/ava/issues/599/comments","statuses_url":"https://api.github.com/repos/sindresorhus/ava/statuses/1ac3ea2decb4f6da1c2214161b16c0b95eda5f9d","head":{"label":"jamestalmage:busy-indicator","ref":"busy-indicator","sha":"1ac3ea2decb4f6da1c2214161b16c0b95eda5f9d","user":{"login":"jamestalmage","id":4082216,"avatar_url":"https://avatars.githubusercontent.com/u/4082216?v=3","gravatar_id":"","url":"https://api.github.com/users/jamestalmage","html_url":"https://github.com/jamestalmage","followers_url":"https://api.github.com/users/jamestalmage/followers","following_url":"https://api.github.com/users/jamestalmage/following{/other_user}","gists_url":"https://api.github.com/users/jamestalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/jamestalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamestalmage/subscriptions","organizations_url":"https://api.github.com/users/jamestalmage/orgs","repos_url":"https://api.github.com/users/jamestalmage/repos","events_url":"https://api.github.com/users/jamestalmage/events{/privacy}","received_events_url":"https://api.github.com/users/jamestalmage/received_events","type":"User","site_admin":false},"repo":{"id":45423629,"name":"ava","full_name":"jamestalmage/ava","owner":{"login":"jamestalmage","id":4082216,"avatar_url":"https://avatars.githubusercontent.com/u/4082216?v=3","gravatar_id":"","url":"https://api.github.com/users/jamestalmage","html_url":"https://github.com/jamestalmage","followers_url":"https://api.github.com/users/jamestalmage/followers","following_url":"https://api.github.com/users/jamestalmage/following{/other_user}","gists_url":"https://api.github.com/users/jamestalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/jamestalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamestalmage/subscriptions","organizations_url":"https://api.github.com/users/jamestalmage/orgs","repos_url":"https://api.github.com/users/jamestalmage/repos","events_url":"https://api.github.com/users/jamestalmage/events{/privacy}","received_events_url":"https://api.github.com/users/jamestalmage/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamestalmage/ava","description":"Futuristic test runner :rocket:","fork":true,"url":"https://api.github.com/repos/jamestalmage/ava","forks_url":"https://api.github.com/repos/jamestalmage/ava/forks","keys_url":"https://api.github.com/repos/jamestalmage/ava/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamestalmage/ava/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamestalmage/ava/teams","hooks_url":"https://api.github.com/repos/jamestalmage/ava/hooks","issue_events_url":"https://api.github.com/repos/jamestalmage/ava/issues/events{/number}","events_url":"https://api.github.com/repos/jamestalmage/ava/events","assignees_url":"https://api.github.com/repos/jamestalmage/ava/assignees{/user}","branches_url":"https://api.github.com/repos/jamestalmage/ava/branches{/branch}","tags_url":"https://api.github.com/repos/jamestalmage/ava/tags","blobs_url":"https://api.github.com/repos/jamestalmage/ava/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamestalmage/ava/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamestalmage/ava/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamestalmage/ava/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamestalmage/ava/statuses/{sha}","languages_url":"https://api.github.com/repos/jamestalmage/ava/languages","stargazers_url":"https://api.github.com/repos/jamestalmage/ava/stargazers","contributors_url":"https://api.github.com/repos/jamestalmage/ava/contributors","subscribers_url":"https://api.github.com/repos/jamestalmage/ava/subscribers","subscription_url":"https://api.github.com/repos/jamestalmage/ava/subscription","commits_url":"https://api.github.com/repos/jamestalmage/ava/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamestalmage/ava/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamestalmage/ava/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamestalmage/ava/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamestalmage/ava/contents/{+path}","compare_url":"https://api.github.com/repos/jamestalmage/ava/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamestalmage/ava/merges","archive_url":"https://api.github.com/repos/jamestalmage/ava/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamestalmage/ava/downloads","issues_url":"https://api.github.com/repos/jamestalmage/ava/issues{/number}","pulls_url":"https://api.github.com/repos/jamestalmage/ava/pulls{/number}","milestones_url":"https://api.github.com/repos/jamestalmage/ava/milestones{/number}","notifications_url":"https://api.github.com/repos/jamestalmage/ava/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamestalmage/ava/labels{/name}","releases_url":"https://api.github.com/repos/jamestalmage/ava/releases{/id}","deployments_url":"https://api.github.com/repos/jamestalmage/ava/deployments","created_at":"2015-11-02T21:35:12Z","updated_at":"2015-11-02T21:35:13Z","pushed_at":"2016-03-04T01:10:23Z","git_url":"git://github.com/jamestalmage/ava.git","ssh_url":"git@github.com:jamestalmage/ava.git","clone_url":"https://github.com/jamestalmage/ava.git","svn_url":"https://github.com/jamestalmage/ava","homepage":"","size":3532,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"sindresorhus:master","ref":"master","sha":"d967956bf84f9265b65a7c94ca81d1038a840536","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":26820798,"name":"ava","full_name":"sindresorhus/ava","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/ava","description":"Futuristic test runner :rocket:","fork":false,"url":"https://api.github.com/repos/sindresorhus/ava","forks_url":"https://api.github.com/repos/sindresorhus/ava/forks","keys_url":"https://api.github.com/repos/sindresorhus/ava/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/ava/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/ava/teams","hooks_url":"https://api.github.com/repos/sindresorhus/ava/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/ava/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/ava/events","assignees_url":"https://api.github.com/repos/sindresorhus/ava/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/ava/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/ava/tags","blobs_url":"https://api.github.com/repos/sindresorhus/ava/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/ava/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/ava/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/ava/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/ava/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/ava/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/ava/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/ava/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/ava/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/ava/subscription","commits_url":"https://api.github.com/repos/sindresorhus/ava/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/ava/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/ava/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/ava/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/ava/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/ava/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/ava/merges","archive_url":"https://api.github.com/repos/sindresorhus/ava/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/ava/downloads","issues_url":"https://api.github.com/repos/sindresorhus/ava/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/ava/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/ava/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/ava/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/ava/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/ava/releases{/id}","deployments_url":"https://api.github.com/repos/sindresorhus/ava/deployments","created_at":"2014-11-18T17:20:26Z","updated_at":"2016-03-04T11:47:46Z","pushed_at":"2016-03-04T10:54:30Z","git_url":"git://github.com/sindresorhus/ava.git","ssh_url":"git@github.com:sindresorhus/ava.git","clone_url":"https://github.com/sindresorhus/ava.git","svn_url":"https://github.com/sindresorhus/ava","homepage":"","size":3708,"stargazers_count":3120,"watchers_count":3120,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":122,"mirror_url":null,"open_issues_count":69,"forks":122,"open_issues":69,"watchers":3120,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/ava/pulls/599"},"html":{"href":"https://github.com/sindresorhus/ava/pull/599"},"issue":{"href":"https://api.github.com/repos/sindresorhus/ava/issues/599"},"comments":{"href":"https://api.github.com/repos/sindresorhus/ava/issues/599/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/ava/pulls/599/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/ava/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/ava/pulls/599/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/ava/statuses/1ac3ea2decb4f6da1c2214161b16c0b95eda5f9d"}}}}