{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/764","repository_url":"https://api.github.com/repos/sindresorhus/ava","labels_url":"https://api.github.com/repos/sindresorhus/ava/issues/764/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/ava/issues/764/comments","events_url":"https://api.github.com/repos/sindresorhus/ava/issues/764/events","html_url":"https://github.com/sindresorhus/ava/issues/764","id":148801808,"number":764,"title":"Show `expected` and `actual` if they exist on the AssertionError object.","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-16T01:03:27Z","updated_at":"2016-04-16T01:05:08Z","closed_at":null,"body":"The following:\r\n\r\n```js\r\nimport assert from 'assert';\r\nimport test from 'test';\r\n\r\ntest(() => {\r\n  assert.equal(3, 4, 'foo');\r\n});\r\n```\r\n\r\nproduces this output:\r\n\r\n```\r\n   1 failed\r\n\r\n  1. [anonymous]\r\n  foo\r\n      Test.fn (test.js:4:9)\r\n```\r\n\r\nIf you do not specify a message, you get a more helpful `3==4` in the message. If we get an AssertionError that was not enhanced by `power-assert`, we should be displaying (at a minimum) those two properties.\r\n\r\nMocha's output (for reference):\r\n\r\n```\r\n  0 passing (9ms)\r\n  1 failing\r\n\r\n  1)  foo:\r\n\r\n      AssertionError: foo\r\n      + expected - actual\r\n\r\n      -3\r\n      +4\r\n```"},"comment":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/comments/210701728","html_url":"https://github.com/sindresorhus/ava/issues/764#issuecomment-210701728","issue_url":"https://api.github.com/repos/sindresorhus/ava/issues/764","id":210701728,"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},"created_at":"2016-04-16T01:05:08Z","updated_at":"2016-04-16T01:05:08Z","body":"This would be really helpful for our eslint plugin tests, which rely on eslints [`RuleTester`](https://github.com/eslint/eslint/blob/master/lib/testers/rule-tester.js#L399-L413) utility. It throws plain old assertion errors. "}}