{"action":"created","issue":{"url":"https://api.github.com/repos/producthunt/chai-enzyme/issues/13","labels_url":"https://api.github.com/repos/producthunt/chai-enzyme/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/producthunt/chai-enzyme/issues/13/comments","events_url":"https://api.github.com/repos/producthunt/chai-enzyme/issues/13/events","html_url":"https://github.com/producthunt/chai-enzyme/issues/13","id":127818411,"number":13,"title":"Assertion tagName tries to shallowrender the given component","user":{"login":"marcodejongh","id":1107647,"avatar_url":"https://avatars.githubusercontent.com/u/1107647?v=3","gravatar_id":"","url":"https://api.github.com/users/marcodejongh","html_url":"https://github.com/marcodejongh","followers_url":"https://api.github.com/users/marcodejongh/followers","following_url":"https://api.github.com/users/marcodejongh/following{/other_user}","gists_url":"https://api.github.com/users/marcodejongh/gists{/gist_id}","starred_url":"https://api.github.com/users/marcodejongh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcodejongh/subscriptions","organizations_url":"https://api.github.com/users/marcodejongh/orgs","repos_url":"https://api.github.com/users/marcodejongh/repos","events_url":"https://api.github.com/users/marcodejongh/events{/privacy}","received_events_url":"https://api.github.com/users/marcodejongh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/producthunt/chai-enzyme/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-21T00:35:53Z","updated_at":"2016-01-21T08:23:18Z","closed_at":null,"body":"When using the following assertion:\r\n\r\n```\r\nexpect(wrapper.children().at(1)).to.have.tagName('td');\r\n```\r\n\r\nI get a error because on of the props of the child of the wrapper at 1 is undefined.\r\n\r\nIf I remove the tagName assertion and just leave this one:\r\n\r\n```\r\n expect(wrapper.children().at(1)).to.have.prop('className', 'action');\r\n```\r\n\r\nThe error is gone. So there is a discrepancy between how ```to.have.prop``` and ```to.have.tagName``` do their assertions."},"comment":{"url":"https://api.github.com/repos/producthunt/chai-enzyme/issues/comments/173493829","html_url":"https://github.com/producthunt/chai-enzyme/issues/13#issuecomment-173493829","issue_url":"https://api.github.com/repos/producthunt/chai-enzyme/issues/13","id":173493829,"user":{"login":"marcodejongh","id":1107647,"avatar_url":"https://avatars.githubusercontent.com/u/1107647?v=3","gravatar_id":"","url":"https://api.github.com/users/marcodejongh","html_url":"https://github.com/marcodejongh","followers_url":"https://api.github.com/users/marcodejongh/followers","following_url":"https://api.github.com/users/marcodejongh/following{/other_user}","gists_url":"https://api.github.com/users/marcodejongh/gists{/gist_id}","starred_url":"https://api.github.com/users/marcodejongh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcodejongh/subscriptions","organizations_url":"https://api.github.com/users/marcodejongh/orgs","repos_url":"https://api.github.com/users/marcodejongh/repos","events_url":"https://api.github.com/users/marcodejongh/events{/privacy}","received_events_url":"https://api.github.com/users/marcodejongh/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T08:23:18Z","updated_at":"2016-01-21T08:23:18Z","body":"Could you make sure that you assign issues that you're picking up? I have 20% time tomorrow so I intend to fix all issues raised by me. I went ahead with making these issues to get some discussion going about them"}}