Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add failing test for self empty jsx element that should equal an empty element as well #7

Closed
wants to merge 1 commit into from

Conversation

MoOx
Copy link

@MoOx MoOx commented Nov 2, 2015

Related #6

@MoOx MoOx mentioned this pull request Nov 2, 2015
@vvo
Copy link
Contributor

vvo commented Nov 2, 2015

We can't have the function returning two different strings

@vvo vvo closed this Nov 2, 2015
@vvo
Copy link
Contributor

vvo commented Nov 3, 2015

Seems to me a better test and fix would be to insert fake line breaks and spaces and make sure we do not have them in the output. Deal?

@MoOx
Copy link
Author

MoOx commented Nov 6, 2015

Not sure about the whitespace. It's sort of opininated. I think that the assertion method (that is not part of this module right?) should handle the whitespace differences.

@vvo
Copy link
Contributor

vvo commented Nov 7, 2015

I think that the assertion method (that is not part of this module right?) should handle the whitespace differences.

Yes it depends on the assertion library, as I said expect.toIncludeJSX do not care about whitespace while expect.toEqualJSX does.

vvo pushed a commit that referenced this pull request Nov 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants