Skip to content

Instantly share code, notes, and snippets.

@AdamBrodzinski
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamBrodzinski/39118d7b276e64ce9431 to your computer and use it in GitHub Desktop.
Save AdamBrodzinski/39118d7b276e64ce9431 to your computer and use it in GitHub Desktop.
EvenOrOdd_spec.js step 2
describe("EvenOrOdd Component", function() {
var defProps, renderWithProps, component, el, $el;
beforeEach(function() {
defProps = {
number: 2
};
renderWithProps = function(props) {
component = renderComponent(EvenOrOdd, props);
el = React.findDOMNode(component);
$el = $(el);
};
});
it("should contain Hello World", function() {
renderWithProps(defProps);
expect($el.text()).toEqual('Hello World');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment