{"action":"opened","issue":{"url":"https://api.github.com/repos/avajs/ava/issues/1351","repository_url":"https://api.github.com/repos/avajs/ava","labels_url":"https://api.github.com/repos/avajs/ava/issues/1351/labels{/name}","comments_url":"https://api.github.com/repos/avajs/ava/issues/1351/comments","events_url":"https://api.github.com/repos/avajs/ava/issues/1351/events","html_url":"https://github.com/avajs/ava/issues/1351","id":220495989,"number":1351,"title":"Optional format for string diff error messages ","user":{"login":"pomber","id":1911623,"avatar_url":"https://avatars2.githubusercontent.com/u/1911623?v=3","gravatar_id":"","url":"https://api.github.com/users/pomber","html_url":"https://github.com/pomber","followers_url":"https://api.github.com/users/pomber/followers","following_url":"https://api.github.com/users/pomber/following{/other_user}","gists_url":"https://api.github.com/users/pomber/gists{/gist_id}","starred_url":"https://api.github.com/users/pomber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pomber/subscriptions","organizations_url":"https://api.github.com/users/pomber/orgs","repos_url":"https://api.github.com/users/pomber/repos","events_url":"https://api.github.com/users/pomber/events{/privacy}","received_events_url":"https://api.github.com/users/pomber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-09T20:18:28Z","updated_at":"2017-04-09T20:18:28Z","closed_at":null,"body":"Feature request:\r\n\r\nWhen comparing two string with `t.is(actual, expected)` sometimes, when the test fails, is better to have the two strings side by side instead of showing the diff. It would be nice if this can be configured in some way.\r\n\r\nFor example:\r\n`t.is(\"<undefined></undefined>\", \"<div></div>\");`\r\n\r\nCurrent output :\r\n```\r\n  Difference:\r\n    \"<undefinedv></undefinedv>\"\r\n```\r\n\r\nSuggested output (using same output as other types use):\r\n```\r\n  Actual:\r\n\r\n    \"<undefined></undefined>\"\r\n\r\n  Must be strictly equal to:\r\n\r\n     \"<div></div>\"\r\n\r\n```\r\nOr even better:\r\n```\r\n    Actual: \"<undefined></undefined>\"\r\n  Expected: \"<div></div>\"\r\n```"}}
{"actor":{"display_login":"pomber"}}