-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Labels
Description
I am using tape-jsx-equals and have the following code
renderer.render(
<Picture />
)
t.jsxEquals(
renderer.getRenderOutput(),
<div></div>,
"should render nothing if nothing is passed as props"
)(I only pasted the relevant part of my code)
The issue I get is:
expected: '<div />'
actual: '<div>\n \n</div>'
The expected result I wrote is <div></div>, but somehow it got transformed to <div />. Maybe by babel.
Maybe <div>{whitespace}</div> should be rendered to <div />?