Skip to content

Commit

Permalink
Improve test messages for exercise no. 1. Ref #4
Browse files Browse the repository at this point in the history
  • Loading branch information
voter101 committed Jul 6, 2015
1 parent 5141d3e commit 809dd43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/es6/01-HelloWorld.js
Expand Up @@ -17,9 +17,9 @@ describe("01 - HelloWorld", () => {
var divTags = React.addons.TestUtils.scryRenderedDOMComponentsWithTag(component, 'div');
var spanTags = React.addons.TestUtils.scryRenderedDOMComponentsWithTag(component, 'span');

assert.equal(divTags.length == 0, true, "Your React component shouldn't render any `div`")
assert.equal(spanTags.length == 1, true, "You need to render exactly one `span` element")
assert.equal(divTags.length == 0, true, "Your React component shouldn't render any `div` HTML elements")
assert.equal(spanTags.length == 1, true, "You need to render exactly one `span` HTML element")

assert.equal(spanTags[0].props.children, "Hello World", "You have rendered wrong message in your `span`");
assert.equal(spanTags[0].props.children, "Hello World", "You have rendered wrong message in your `span` element");
})
});

0 comments on commit 809dd43

Please sign in to comment.