{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/ava/pulls/comments/46904155","id":46904155,"diff_hunk":"@@ -0,0 +1,262 @@\n+'use strict';\n+var path = require('path');\n+var test = require('tap').test;\n+var Api = require('../api');\n+\n+test('ES2015 support', function (t) {\n+\tt.plan(1);\n+\n+\tvar api = new Api([path.join(__dirname, 'fixture/es2015.js')]);\n+\n+\tapi.run()\n+\t\t.then(function () {\n+\t\t\tt.same(api.passCount, 1);\n+\t\t});\n+});\n+\n+test('generators support', function (t) {\n+\tt.plan(1);\n+\n+\tvar api = new Api([path.join(__dirname, 'fixture/generators.js')]);\n+\n+\tapi.run()\n+\t\t.then(function () {\n+\t\t\tt.same(api.passCount, 1);\n+\t\t});\n+});\n+\n+test('async/await support', function (t) {\n+\tt.plan(1);\n+\n+\tvar api = new Api([path.join(__dirname, 'fixture/async-await.js')]);\n+\n+\tapi.run()\n+\t\t.then(function () {\n+\t\t\tt.same(api.passCount, 2);\n+\t\t});\n+});\n+\n+test('display filename prefixes for failed test stack traces', function (t) {\n+\tt.plan(3);\n+\n+\tvar files = [\n+\t\tpath.join(__dirname, 'fixture/es2015.js'),\n+\t\tpath.join(__dirname, 'fixture/one-pass-one-fail.js')\n+\t];\n+\n+\tvar api = new Api(files);\n+\n+\tapi.run()\n+\t\t.then(function () {\n+\t\t\tt.same(api.passCount, 2);\n+\t\t\tt.same(api.failCount, 1);\n+\t\t\tt.match(api.errors[0].title, /test › fixture › one-pass-one-fail › this is a failing test/);","path":"test/api.js","position":53,"original_position":53,"commit_id":"4b7390ae15505be57d68cae07e993474ff32664d","original_commit_id":"4b7390ae15505be57d68cae07e993474ff32664d","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":"This assertion is failing on AppVeyor (reliably). Are you able to test on Windows?\r\nUnfortunately, the tap `spec` reporter does not show the input string for failed `t.match` tests.\r\nI've been burned by this before.\r\n\r\nMaybe it's time we switched to the `tap` `classic` reporter. It's the default reporter on desktop (the default when no `tty` is present is TAP. It is basically `dots`, but with really verbose failures)","created_at":"2015-12-08T01:23:34Z","updated_at":"2015-12-08T01:23:34Z","html_url":"https://github.com/sindresorhus/ava/pull/313#discussion_r46904155","pull_request_url":"https://api.github.com/repos/sindresorhus/ava/pulls/313","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/ava/pulls/comments/46904155"},"html":{"href":"https://github.com/sindresorhus/ava/pull/313#discussion_r46904155"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/ava/pulls/313"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/ava/pulls/313","id":52924566,"html_url":"https://github.com/sindresorhus/ava/pull/313","diff_url":"https://github.com/sindresorhus/ava/pull/313.diff","patch_url":"https://github.com/sindresorhus/ava/pull/313.patch","issue_url":"https://api.github.com/repos/sindresorhus/ava/issues/313","number":313,"state":"open","locked":false,"title":"Add API tests","user":{"login":"sotojuan","id":8217766,"avatar_url":"https://avatars.githubusercontent.com/u/8217766?v=3","gravatar_id":"","url":"https://api.github.com/users/sotojuan","html_url":"https://github.com/sotojuan","followers_url":"https://api.github.com/users/sotojuan/followers","following_url":"https://api.github.com/users/sotojuan/following{/other_user}","gists_url":"https://api.github.com/users/sotojuan/gists{/gist_id}","starred_url":"https://api.github.com/users/sotojuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sotojuan/subscriptions","organizations_url":"https://api.github.com/users/sotojuan/orgs","repos_url":"https://api.github.com/users/sotojuan/repos","events_url":"https://api.github.com/users/sotojuan/events{/privacy}","received_events_url":"https://api.github.com/users/sotojuan/received_events","type":"User","site_admin":false},"body":"This helps out with #285 by simply taking some of the CLI tests and applying them to the API. Some were omitted because they tested output.","created_at":"2015-12-08T00:59:53Z","updated_at":"2015-12-08T01:23:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60bfe0ce4f774a90057f6de02a43cf3afba7ae31","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/ava/pulls/313/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/ava/pulls/313/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/ava/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/ava/issues/313/comments","statuses_url":"https://api.github.com/repos/sindresorhus/ava/statuses/4b7390ae15505be57d68cae07e993474ff32664d","head":{"label":"sotojuan:master","ref":"master","sha":"4b7390ae15505be57d68cae07e993474ff32664d","user":{"login":"sotojuan","id":8217766,"avatar_url":"https://avatars.githubusercontent.com/u/8217766?v=3","gravatar_id":"","url":"https://api.github.com/users/sotojuan","html_url":"https://github.com/sotojuan","followers_url":"https://api.github.com/users/sotojuan/followers","following_url":"https://api.github.com/users/sotojuan/following{/other_user}","gists_url":"https://api.github.com/users/sotojuan/gists{/gist_id}","starred_url":"https://api.github.com/users/sotojuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sotojuan/subscriptions","organizations_url":"https://api.github.com/users/sotojuan/orgs","repos_url":"https://api.github.com/users/sotojuan/repos","events_url":"https://api.github.com/users/sotojuan/events{/privacy}","received_events_url":"https://api.github.com/users/sotojuan/received_events","type":"User","site_admin":false},"repo":{"id":47566010,"name":"ava","full_name":"sotojuan/ava","owner":{"login":"sotojuan","id":8217766,"avatar_url":"https://avatars.githubusercontent.com/u/8217766?v=3","gravatar_id":"","url":"https://api.github.com/users/sotojuan","html_url":"https://github.com/sotojuan","followers_url":"https://api.github.com/users/sotojuan/followers","following_url":"https://api.github.com/users/sotojuan/following{/other_user}","gists_url":"https://api.github.com/users/sotojuan/gists{/gist_id}","starred_url":"https://api.github.com/users/sotojuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sotojuan/subscriptions","organizations_url":"https://api.github.com/users/sotojuan/orgs","repos_url":"https://api.github.com/users/sotojuan/repos","events_url":"https://api.github.com/users/sotojuan/events{/privacy}","received_events_url":"https://api.github.com/users/sotojuan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sotojuan/ava","description":"Futuristic test runner :rocket:","fork":true,"url":"https://api.github.com/repos/sotojuan/ava","forks_url":"https://api.github.com/repos/sotojuan/ava/forks","keys_url":"https://api.github.com/repos/sotojuan/ava/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sotojuan/ava/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sotojuan/ava/teams","hooks_url":"https://api.github.com/repos/sotojuan/ava/hooks","issue_events_url":"https://api.github.com/repos/sotojuan/ava/issues/events{/number}","events_url":"https://api.github.com/repos/sotojuan/ava/events","assignees_url":"https://api.github.com/repos/sotojuan/ava/assignees{/user}","branches_url":"https://api.github.com/repos/sotojuan/ava/branches{/branch}","tags_url":"https://api.github.com/repos/sotojuan/ava/tags","blobs_url":"https://api.github.com/repos/sotojuan/ava/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sotojuan/ava/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sotojuan/ava/git/refs{/sha}","trees_url":"https://api.github.com/repos/sotojuan/ava/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sotojuan/ava/statuses/{sha}","languages_url":"https://api.github.com/repos/sotojuan/ava/languages","stargazers_url":"https://api.github.com/repos/sotojuan/ava/stargazers","contributors_url":"https://api.github.com/repos/sotojuan/ava/contributors","subscribers_url":"https://api.github.com/repos/sotojuan/ava/subscribers","subscription_url":"https://api.github.com/repos/sotojuan/ava/subscription","commits_url":"https://api.github.com/repos/sotojuan/ava/commits{/sha}","git_commits_url":"https://api.github.com/repos/sotojuan/ava/git/commits{/sha}","comments_url":"https://api.github.com/repos/sotojuan/ava/comments{/number}","issue_comment_url":"https://api.github.com/repos/sotojuan/ava/issues/comments{/number}","contents_url":"https://api.github.com/repos/sotojuan/ava/contents/{+path}","compare_url":"https://api.github.com/repos/sotojuan/ava/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sotojuan/ava/merges","archive_url":"https://api.github.com/repos/sotojuan/ava/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sotojuan/ava/downloads","issues_url":"https://api.github.com/repos/sotojuan/ava/issues{/number}","pulls_url":"https://api.github.com/repos/sotojuan/ava/pulls{/number}","milestones_url":"https://api.github.com/repos/sotojuan/ava/milestones{/number}","notifications_url":"https://api.github.com/repos/sotojuan/ava/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sotojuan/ava/labels{/name}","releases_url":"https://api.github.com/repos/sotojuan/ava/releases{/id}","created_at":"2015-12-07T16:55:24Z","updated_at":"2015-12-07T16:55:25Z","pushed_at":"2015-12-08T00:54:40Z","git_url":"git://github.com/sotojuan/ava.git","ssh_url":"git@github.com:sotojuan/ava.git","clone_url":"https://github.com/sotojuan/ava.git","svn_url":"https://github.com/sotojuan/ava","homepage":"","size":2933,"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":"ff5b8dfa5cc9c49a0919c9cad0896cb9c3e971ee","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}","created_at":"2014-11-18T17:20:26Z","updated_at":"2015-12-07T22:35:59Z","pushed_at":"2015-12-08T00:59:53Z","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":3119,"stargazers_count":1928,"watchers_count":1928,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":60,"forks":62,"open_issues":60,"watchers":1928,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/ava/pulls/313"},"html":{"href":"https://github.com/sindresorhus/ava/pull/313"},"issue":{"href":"https://api.github.com/repos/sindresorhus/ava/issues/313"},"comments":{"href":"https://api.github.com/repos/sindresorhus/ava/issues/313/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/ava/pulls/313/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/ava/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/ava/pulls/313/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/ava/statuses/4b7390ae15505be57d68cae07e993474ff32664d"}}}}