{"action":"created","issue":{"url":"https://api.github.com/repos/avajs/eslint-plugin-ava/issues/164","repository_url":"https://api.github.com/repos/avajs/eslint-plugin-ava","labels_url":"https://api.github.com/repos/avajs/eslint-plugin-ava/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/avajs/eslint-plugin-ava/issues/164/comments","events_url":"https://api.github.com/repos/avajs/eslint-plugin-ava/issues/164/events","html_url":"https://github.com/avajs/eslint-plugin-ava/issues/164","id":199507968,"number":164,"title":"ava/assertion-arguments argues about explicit call of t.end() in test.cb()","user":{"login":"florianb","id":983507,"avatar_url":"https://avatars.githubusercontent.com/u/983507?v=3","gravatar_id":"","url":"https://api.github.com/users/florianb","html_url":"https://github.com/florianb","followers_url":"https://api.github.com/users/florianb/followers","following_url":"https://api.github.com/users/florianb/following{/other_user}","gists_url":"https://api.github.com/users/florianb/gists{/gist_id}","starred_url":"https://api.github.com/users/florianb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florianb/subscriptions","organizations_url":"https://api.github.com/users/florianb/orgs","repos_url":"https://api.github.com/users/florianb/repos","events_url":"https://api.github.com/users/florianb/events{/privacy}","received_events_url":"https://api.github.com/users/florianb/received_events","type":"User","site_admin":false},"labels":[{"id":332467466,"url":"https://api.github.com/repos/avajs/eslint-plugin-ava/labels/assigned","name":"assigned","color":"5319e7","default":false},{"id":311842312,"url":"https://api.github.com/repos/avajs/eslint-plugin-ava/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-09T09:28:52Z","updated_at":"2017-01-10T10:38:05Z","closed_at":"2017-01-10T05:45:50Z","body":"First of all i am not sure if this is a bug report or a feature request. I ended up deactivating the `assertion-arguments`-rule.\r\n\r\nGiven the following condensed test-code example, where i want to test if the method takes path `b`:\r\n\r\n```js\r\ntest.cb(t => {\r\n  m({\r\n    a: {\r\n      callback: () => t.end(true)\r\n    },\r\n    b: {\r\n      callback: () => t.end(false)\r\n    }\r\n  });\r\n});\r\n```\r\n\r\n`ava/assertion-arguments` complains: Too many arguments. Expected at most 0.\r\n\r\nI know the documentation somehow exposes `t.end()` as single callback handler without any parameters. But it also says if \"any truthy value [will be] passed as the first argument to t.end\" it treats it as error.\r\n\r\n@jfmengels already mentioned using t.fail/t.success instead. Unfortunately this is prohibited by `ava/test-ended`: Callback test was not ended. Make sure to explicitly end the test with t.end().\r\n\r\nIt's probably just a decision which rule to adjust, however. If there's something i can do. Let me know."},"comment":{"url":"https://api.github.com/repos/avajs/eslint-plugin-ava/issues/comments/271542111","html_url":"https://github.com/avajs/eslint-plugin-ava/issues/164#issuecomment-271542111","issue_url":"https://api.github.com/repos/avajs/eslint-plugin-ava/issues/164","id":271542111,"user":{"login":"florianb","id":983507,"avatar_url":"https://avatars.githubusercontent.com/u/983507?v=3","gravatar_id":"","url":"https://api.github.com/users/florianb","html_url":"https://github.com/florianb","followers_url":"https://api.github.com/users/florianb/followers","following_url":"https://api.github.com/users/florianb/following{/other_user}","gists_url":"https://api.github.com/users/florianb/gists{/gist_id}","starred_url":"https://api.github.com/users/florianb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florianb/subscriptions","organizations_url":"https://api.github.com/users/florianb/orgs","repos_url":"https://api.github.com/users/florianb/repos","events_url":"https://api.github.com/users/florianb/events{/privacy}","received_events_url":"https://api.github.com/users/florianb/received_events","type":"User","site_admin":false},"created_at":"2017-01-10T10:38:05Z","updated_at":"2017-01-10T10:38:05Z","body":"![](https://media.giphy.com/media/3o6wrzcyVdjrEC5UaY/giphy.gif)"}}
{"actor":{"display_login":"florianb"}}