{"action":"created","issue":{"url":"https://api.github.com/repos/bruderstein/unexpected-react/issues/22","repository_url":"https://api.github.com/repos/bruderstein/unexpected-react","labels_url":"https://api.github.com/repos/bruderstein/unexpected-react/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/bruderstein/unexpected-react/issues/22/comments","events_url":"https://api.github.com/repos/bruderstein/unexpected-react/issues/22/events","html_url":"https://github.com/bruderstein/unexpected-react/issues/22","id":149257353,"number":22,"title":"became fail with Error: You can't print a magicpen instance with a text style","user":{"login":"RusAlex","id":374474,"avatar_url":"https://avatars.githubusercontent.com/u/374474?v=3","gravatar_id":"","url":"https://api.github.com/users/RusAlex","html_url":"https://github.com/RusAlex","followers_url":"https://api.github.com/users/RusAlex/followers","following_url":"https://api.github.com/users/RusAlex/following{/other_user}","gists_url":"https://api.github.com/users/RusAlex/gists{/gist_id}","starred_url":"https://api.github.com/users/RusAlex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RusAlex/subscriptions","organizations_url":"https://api.github.com/users/RusAlex/orgs","repos_url":"https://api.github.com/users/RusAlex/repos","events_url":"https://api.github.com/users/RusAlex/events{/privacy}","received_events_url":"https://api.github.com/users/RusAlex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-18T20:07:47Z","updated_at":"2016-04-18T20:18:28Z","closed_at":null,"body":"unexpected-react v.0.5.2\r\n\r\nError: You can't print a magicpen instance with a text style\r\n\r\nHere is minimal working (failing test) example.\r\n\r\n```javascript\r\n/*eslint-env node, mocha */\r\nimport React from 'react';\r\nimport TestUtils from 'react-addons-test-utils';\r\nimport unexpectedReact from 'unexpected-react';\r\nimport unexpected from 'unexpected';\r\n\r\nconst expect = unexpected.clone()\r\n    .use(unexpectedReact);\r\n\r\nclass Header extends React.Component {\r\n\r\n  render() {\r\n    return (\r\n      <div></div>\r\n    )\r\n  }\r\n}\r\n\r\nclass ComponentFoo extends React.Component {\r\n\r\n  render() {\r\n    return (\r\n      <div>\r\n        <Header property={{}}></Header>\r\n      </div>\r\n    )\r\n  }\r\n}\r\n\r\n\r\ndescribe('Test component', function() {\r\n\r\n  it('Should work', function() {\r\n    let renderer = TestUtils.createRenderer();\r\n    renderer.render(<ComponentFoo />);\r\n\r\n    return expect(\r\n      renderer,\r\n      'to have rendered',\r\n      <div>\r\n      </div>\r\n    );\r\n  });\r\n\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/bruderstein/unexpected-react/issues/comments/211558105","html_url":"https://github.com/bruderstein/unexpected-react/issues/22#issuecomment-211558105","issue_url":"https://api.github.com/repos/bruderstein/unexpected-react/issues/22","id":211558105,"user":{"login":"bruderstein","id":91716,"avatar_url":"https://avatars.githubusercontent.com/u/91716?v=3","gravatar_id":"","url":"https://api.github.com/users/bruderstein","html_url":"https://github.com/bruderstein","followers_url":"https://api.github.com/users/bruderstein/followers","following_url":"https://api.github.com/users/bruderstein/following{/other_user}","gists_url":"https://api.github.com/users/bruderstein/gists{/gist_id}","starred_url":"https://api.github.com/users/bruderstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruderstein/subscriptions","organizations_url":"https://api.github.com/users/bruderstein/orgs","repos_url":"https://api.github.com/users/bruderstein/repos","events_url":"https://api.github.com/users/bruderstein/events{/privacy}","received_events_url":"https://api.github.com/users/bruderstein/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T20:18:28Z","updated_at":"2016-04-18T20:18:28Z","body":"You should update to unexpected-react 3.1.1\r\n\r\n0.5.2 has this issue in unexpected-htmllike.  This has been fixed in a newer version.\r\n"}}