{"action":"created","issue":{"url":"https://api.github.com/repos/producthunt/chai-enzyme/issues/177","repository_url":"https://api.github.com/repos/producthunt/chai-enzyme","labels_url":"https://api.github.com/repos/producthunt/chai-enzyme/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/producthunt/chai-enzyme/issues/177/comments","events_url":"https://api.github.com/repos/producthunt/chai-enzyme/issues/177/events","html_url":"https://github.com/producthunt/chai-enzyme/issues/177","id":230495758,"number":177,"title":"Breaking change with undefined in 0.7.0?","user":{"login":"ZebraFlesh","id":10542617,"avatar_url":"https://avatars2.githubusercontent.com/u/10542617?v=3","gravatar_id":"","url":"https://api.github.com/users/ZebraFlesh","html_url":"https://github.com/ZebraFlesh","followers_url":"https://api.github.com/users/ZebraFlesh/followers","following_url":"https://api.github.com/users/ZebraFlesh/following{/other_user}","gists_url":"https://api.github.com/users/ZebraFlesh/gists{/gist_id}","starred_url":"https://api.github.com/users/ZebraFlesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZebraFlesh/subscriptions","organizations_url":"https://api.github.com/users/ZebraFlesh/orgs","repos_url":"https://api.github.com/users/ZebraFlesh/repos","events_url":"https://api.github.com/users/ZebraFlesh/events{/privacy}","received_events_url":"https://api.github.com/users/ZebraFlesh/received_events","type":"User","site_admin":false},"labels":[{"id":314469981,"url":"https://api.github.com/repos/producthunt/chai-enzyme/labels/bug","name":"bug","color":"e11d21","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-22T19:33:33Z","updated_at":"2017-05-25T23:24:10Z","closed_at":null,"body":"The fix for handling undefined arguments on 0.7.0 doesn't seem like a fix so much as a breaking change. A lot of the examples are now incorrect. For example, the [attr example](https://github.com/producthunt/chai-enzyme#attrkey-val) has the line:\r\n\r\n`expect(wrapper.find('span')).to.have.attr('id')`\r\n\r\nBut in 0.7.0, that will fail with `AssertionError: expected the node in <Fixture /> to have a 'id' attribute with the value undefined, but the value was 'child'`. Is this behavior intended?\r\n\r\nI'm seeing a few failures after upgrading. They're in tests of the form `expect(wrapper).to.have.prop('foo')` and `expect(wrapper).to.have.attr('foo').contain('some value')`."},"comment":{"url":"https://api.github.com/repos/producthunt/chai-enzyme/issues/comments/304150658","html_url":"https://github.com/producthunt/chai-enzyme/issues/177#issuecomment-304150658","issue_url":"https://api.github.com/repos/producthunt/chai-enzyme/issues/177","id":304150658,"user":{"login":"wbyoung","id":57162,"avatar_url":"https://avatars2.githubusercontent.com/u/57162?v=3","gravatar_id":"","url":"https://api.github.com/users/wbyoung","html_url":"https://github.com/wbyoung","followers_url":"https://api.github.com/users/wbyoung/followers","following_url":"https://api.github.com/users/wbyoung/following{/other_user}","gists_url":"https://api.github.com/users/wbyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/wbyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbyoung/subscriptions","organizations_url":"https://api.github.com/users/wbyoung/orgs","repos_url":"https://api.github.com/users/wbyoung/repos","events_url":"https://api.github.com/users/wbyoung/events{/privacy}","received_events_url":"https://api.github.com/users/wbyoung/received_events","type":"User","site_admin":false},"created_at":"2017-05-25T23:24:10Z","updated_at":"2017-05-25T23:24:10Z","body":"@ZebraFlesh I just ran into something similar. Can you take a look at #180 and see if it's the same issue that you're explaining here? Also, could you try out #181 and/or #182 to see if they resolve your issue."}}
{"actor":{"display_login":"wbyoung"}}