diff --git a/curriculum/challenges/english/03-front-end-libraries/react/use-array.map-to-dynamically-render-elements.english.md b/curriculum/challenges/english/03-front-end-libraries/react/use-array.map-to-dynamically-render-elements.english.md index 019c7bca27..e1dc977757 100644 --- a/curriculum/challenges/english/03-front-end-libraries/react/use-array.map-to-dynamically-render-elements.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/react/use-array.map-to-dynamically-render-elements.english.md @@ -28,6 +28,8 @@ tests: testString: assert((function() { const mockedComponent = Enzyme.mount(React.createElement(MyToDoList)); return mockedComponent.find('MyToDoList').length === 1; })()); - text: The first child of MyToDoList should be a textarea element. testString: assert((function() { const mockedComponent = Enzyme.mount(React.createElement(MyToDoList)); return mockedComponent.find('MyToDoList').children().childAt(0).type() === 'textarea'; })()); + - text: The second child of MyToDoList should be a br element. + testString: assert((function() { const mockedComponent = Enzyme.mount(React.createElement(MyToDoList)); return mockedComponent.find('MyToDoList').children().childAt(1).type() === 'br'; })()); - text: The third child of MyToDoList should be a button element. testString: assert((function() { const mockedComponent = Enzyme.mount(React.createElement(MyToDoList)); return mockedComponent.find('MyToDoList').children().childAt(2).type() === 'button'; })()); - text: The state of MyToDoList should be initialized with toDoList as an empty array. @@ -80,7 +82,8 @@ class MyToDoList extends React.Component { onChange={this.handleChange} value={this.state.userInput} style={textAreaStyles} - placeholder="Separate Items With Commas" />
+ placeholder="Separate Items With Commas" /> +

My "To Do" List: