TypesOfFood
component should return a single div
element.");'
- text: ''
testString: 'assert(Enzyme.shallow(React.createElement(TypesOfFood)).props().children[1].type.name === "Fruits", "The TypesOfFood
component should return the Fruits
component.");'
- text: ''
testString: 'assert(Enzyme.mount(React.createElement(TypesOfFood)).find("h2").html() === "Fruits
component should return the TypesOfFruit
component.");'
- text: ''
testString: 'assert(Enzyme.mount(React.createElement(TypesOfFood)).find("ul").text() === "ApplesBlueberriesStrawberriesBananas", "The TypesOfFruit
component should return the h2
and ul
elements.");'
```