diff --git a/curriculum/challenges/english/03-front-end-libraries/react/render-a-class-component-to-the-dom.english.md b/curriculum/challenges/english/03-front-end-libraries/react/render-a-class-component-to-the-dom.english.md index 12f582cb793..878027ccd9b 100644 --- a/curriculum/challenges/english/03-front-end-libraries/react/render-a-class-component-to-the-dom.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/react/render-a-class-component-to-the-dom.english.md @@ -30,7 +30,7 @@ tests: - text: The TypesOfFood component should render the Vegetables component after Fruits. testString: assert((function() { const mockedComponent = Enzyme.mount(React.createElement(TypesOfFood)); return mockedComponent.children().childAt(2).name() === 'Vegetables'; })()); - text: The TypesOfFood component should render to the DOM within the div with the id challenge-node. - testString: assert((function() { const html = document.getElementById('challenge-node').childNodes[0].innerHTML; return (html === '

Types of Food:

Fruits:

Non-Citrus:

Citrus:

Vegetables:

'); })()); + testString: assert((function() { const html = document.getElementById('challenge-node').childNodes[0].innerHTML; return html.includes('

Fruits:

Non-Citrus:

Citrus:

') && html.includes('

Vegetables:

'); })()); ```