{/* */}
to wrap around the comment text.
div
element, without modifying the existing h1
or p
elements.
JSX
should return a div
element.
testString: 'assert(JSX.type === "div", "The constant JSX
should return a div
element.");'
- text: The div
should contain an h1
tag as the first element.
testString: 'assert(JSX.props.children[0].type === "h1", "The div
should contain an h1
tag as the first element.");'
- text: The div
should contain a p
tag as the second element.
testString: 'assert(JSX.props.children[1].type === "p", "The div
should contain a p
tag as the second element.");'
- text: The JSX
should include a comment.
testString: 'getUserInput => assert(getUserInput("index").includes("/*") && getUserInput("index").includes("*/"), "The JSX
should include a comment.");'
```
Here's a subtitle
Here's a subtitle