jasmine-react-helpers
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "jasmine-react-helpers", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "a small suite of helper functions to make unit testing React.js components painless.", | ||
@@ -5,0 +5,0 @@ "main": "src/jasmine-react.js", |
@@ -123,2 +123,5 @@ var React = require('react'); | ||
// backwards compatability for React < 0.12 | ||
jasmineReact.renderComponent = jasmineReact.render; | ||
// TODO: this has no automated test coverage. Add some integration tests for coverage. | ||
@@ -125,0 +128,0 @@ afterEach(function(){ |
@@ -56,2 +56,8 @@ describe("jasmineReact", function(){ | ||
}); | ||
it("should alias jasmineReact.renderComponent to jasmineReact.render", function(){ | ||
var returnValue = jasmineReact.renderComponent(<FooKlass baz="bat" />, document.getElementById("jasmine_content")); | ||
expect(returnValue.props.baz).toBe("bat"); | ||
}); | ||
}); | ||
@@ -58,0 +64,0 @@ |
34935
588