{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/163","repository_url":"https://api.github.com/repos/airbnb/enzyme","labels_url":"https://api.github.com/repos/airbnb/enzyme/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/enzyme/issues/163/comments","events_url":"https://api.github.com/repos/airbnb/enzyme/issues/163/events","html_url":"https://github.com/airbnb/enzyme/issues/163","id":131137393,"number":163,"title":"cheerio text() method for children","user":{"login":"cliren","id":7637469,"avatar_url":"https://avatars.githubusercontent.com/u/7637469?v=3","gravatar_id":"","url":"https://api.github.com/users/cliren","html_url":"https://github.com/cliren","followers_url":"https://api.github.com/users/cliren/followers","following_url":"https://api.github.com/users/cliren/following{/other_user}","gists_url":"https://api.github.com/users/cliren/gists{/gist_id}","starred_url":"https://api.github.com/users/cliren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cliren/subscriptions","organizations_url":"https://api.github.com/users/cliren/orgs","repos_url":"https://api.github.com/users/cliren/repos","events_url":"https://api.github.com/users/cliren/events{/privacy}","received_events_url":"https://api.github.com/users/cliren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-03T20:07:03Z","updated_at":"2016-02-05T06:28:15Z","closed_at":null,"body":"How do we solve this in enzyme? The enzyme version fails to retrieve text from a child element.\r\n\r\nCheerio version:\r\n\r\n```\r\nlet $ = cheerio.load(<div><div class=\"comment\">hello</div><div class=\"comment\">world</div></div>);\r\n$(\".comment\").length.should.eql(2);\r\n$($(\".comment\")[0]).text().should.eql(\"hello\");\r\n$($(\".comment\")[1]).text().should.eql(\"world\");\r\n```\r\nEnzyme version:\r\n\r\n```\r\nlet $ =render(<div><div class=\"comment\">hello</div><div class=\"comment\">world</div></div>);\r\n$.find(\".comment\").length.should.eql(2);\r\n\r\n**//DOES NOT WORK as text is not a function on child elements returned**\r\n$.find(\".comment\")[0].text().should.eql(\"hello\");\r\n$.find(\".comment\")[1].text().should.eql(\"world\");\r\n```"},"comment":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/comments/180219226","html_url":"https://github.com/airbnb/enzyme/issues/163#issuecomment-180219226","issue_url":"https://api.github.com/repos/airbnb/enzyme/issues/163","id":180219226,"user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T06:28:15Z","updated_at":"2016-02-05T06:28:15Z","body":"@cliren `eq` returns a wrapped element, `get` returns a raw one."}}