Last active
August 25, 2015 20:20
-
-
Save icirellik/091ca3dafaab1aa209a6 to your computer and use it in GitHub Desktop.
React Test with Context
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var TestUtils = React.addons.TestUtils; | |
var context = {}; | |
var elementWithContenxt = React.withContext(context, function () { | |
return new Element({ | |
prop1: 'property' | |
}); | |
}); | |
var renderedElement = TestUtils.renderIntoDocument(elementWithContenxt); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment