Skip to content

Conversation

@sophiebits
Copy link
Collaborator

I am unsure how this was ever supposed to work, as testDocument is guaranteed to be undefined at that point since beforeEach doesn't run synchronously. (I don't think there's any way to have beforeEach halt the tests, but let me know if you know differently.)

The tests will fail now, but they should be failing because of #337.

/cc @petehunt

I am unsure how this was ever supposed to work, as testDocument is guaranteed to be undefined at that point since beforeEach doesn't run synchronously. (I don't think there's any way to have beforeEach halt the tests.)
@sophiebits
Copy link
Collaborator Author

(Where by "fix tests" I mean, "make tests run".)

sophiebits added a commit to sophiebits/react that referenced this pull request Sep 11, 2013
Closes facebook#337.

Test Plan:
Opened react-page sample without any JS errors. Also ran grunt test after cherry-picking this changeset on top of facebook#338.
zpao added a commit that referenced this pull request Sep 11, 2013
Fix ReactRenderDocument tests
@zpao zpao merged commit 8a7c977 into facebook:master Sep 11, 2013
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