{"action":"created","issue":{"url":"https://api.github.com/repos/avajs/ava/issues/1558","repository_url":"https://api.github.com/repos/avajs/ava","labels_url":"https://api.github.com/repos/avajs/ava/issues/1558/labels{/name}","comments_url":"https://api.github.com/repos/avajs/ava/issues/1558/comments","events_url":"https://api.github.com/repos/avajs/ava/issues/1558/events","html_url":"https://github.com/avajs/ava/issues/1558","id":267066468,"number":1558,"title":"Reverse snapshot diff order","user":{"login":"wmertens","id":54934,"avatar_url":"https://avatars2.githubusercontent.com/u/54934?v=4","gravatar_id":"","url":"https://api.github.com/users/wmertens","html_url":"https://github.com/wmertens","followers_url":"https://api.github.com/users/wmertens/followers","following_url":"https://api.github.com/users/wmertens/following{/other_user}","gists_url":"https://api.github.com/users/wmertens/gists{/gist_id}","starred_url":"https://api.github.com/users/wmertens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmertens/subscriptions","organizations_url":"https://api.github.com/users/wmertens/orgs","repos_url":"https://api.github.com/users/wmertens/repos","events_url":"https://api.github.com/users/wmertens/events{/privacy}","received_events_url":"https://api.github.com/users/wmertens/received_events","type":"User","site_admin":false},"labels":[{"id":149100661,"url":"https://api.github.com/repos/avajs/ava/labels/question","name":"question","color":"cc317c","default":true},{"id":730666561,"url":"https://api.github.com/repos/avajs/ava/labels/scope:assertions","name":"scope:assertions","color":"c8e812","default":false},{"id":672695353,"url":"https://api.github.com/repos/avajs/ava/labels/scope:reporters","name":"scope:reporters","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-10-20T05:21:31Z","updated_at":"2018-03-02T20:44:19Z","closed_at":null,"author_association":"NONE","body":"## Description\r\n\r\nWhen using `t.snapshot(foo)` and `foo` does not match the snapshot, the diff that is shown uses `-` to indicate the new `foo` values and `+` to show the old `foo` values.\r\n\r\nThis is unintuitive.\r\n\r\nI believe the problem may be at https://github.com/avajs/ava/blob/14f7095d25abc5ffbff7efd7db962eaf5e86daab/lib/assert.js#L321\r\n\r\n### Test Source\r\n\r\n```js\r\nimport test from 'ava'\r\ntest('snapshot diff', t => {\r\n  t.snapshot(`\\n${Date.now()}\\n`, 'the - value should be less than the + value')\r\n})\r\n```\r\n\r\n## Environment\r\n\r\nLatest stable ava on OS X"},"comment":{"url":"https://api.github.com/repos/avajs/ava/issues/comments/370047067","html_url":"https://github.com/avajs/ava/issues/1558#issuecomment-370047067","issue_url":"https://api.github.com/repos/avajs/ava/issues/1558","id":370047067,"user":{"login":"vadimdemedes","id":697676,"avatar_url":"https://avatars0.githubusercontent.com/u/697676?v=4","gravatar_id":"","url":"https://api.github.com/users/vadimdemedes","html_url":"https://github.com/vadimdemedes","followers_url":"https://api.github.com/users/vadimdemedes/followers","following_url":"https://api.github.com/users/vadimdemedes/following{/other_user}","gists_url":"https://api.github.com/users/vadimdemedes/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimdemedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimdemedes/subscriptions","organizations_url":"https://api.github.com/users/vadimdemedes/orgs","repos_url":"https://api.github.com/users/vadimdemedes/repos","events_url":"https://api.github.com/users/vadimdemedes/events{/privacy}","received_events_url":"https://api.github.com/users/vadimdemedes/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T20:44:19Z","updated_at":"2018-03-02T20:44:19Z","author_association":"OWNER","body":"Does Jest \"explain\" the - and + in each diff or once per output?"}}
{"actor":{"display_login":"vadimdemedes"}}