Skip to content

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.

2 participants