diff --git a/challenges/03-front-end-libraries/react.json b/challenges/03-front-end-libraries/react.json index 9114957b6a..81c6a57242 100644 --- a/challenges/03-front-end-libraries/react.json +++ b/challenges/03-front-end-libraries/react.json @@ -254,11 +254,10 @@ "tests": [ "assert.strictEqual(JSX.type, 'div', 'message: The constant JSX should return a div element.');", "assert(Enzyme.shallow(JSX).find('br').length === 1, 'message: The div should contain a br tag.');", - "assert(Enzyme.shallow(JSX).find('hr').length === 1, 'message: The div should contain an hr tag.');", - "assert((() => { const testDiv = document.getElementById('challenge-node').childNodes[0].innerHTML.replace(/\\s/g,''); return testDiv.includes('

WelcometoReact!

') && testDiv.includes('

Besuretoclosealltags!

'); })(), 'message: The provided JSX element should render as is to the DOM node with id of challenge-node.');" + "assert(Enzyme.shallow(JSX).find('hr').length === 1, 'message: The div should contain an hr tag.');" ], "solutions": [ - "const JSX = (\n
\n {/* change code below this line */}\n

Welcome to React!


\n

Be sure to close all tags!

\n
\n {/* change code above this line */}\n
\n);\n\nReactDOM.render(JSX, document.getElementById('challenge-node'));" + "const JSX = (\n
\n {/* change code below this line */}\n

Welcome to React!


\n

Be sure to close all tags!

\n
\n {/* change code above this line */}\n
\n);" ], "type": "modern", "isRequired": false,