From 971c62ab53c699fa877bdbc9abdfd55a9418c871 Mon Sep 17 00:00:00 2001 From: kundan kumar Date: Thu, 13 Feb 2020 02:41:36 +0530 Subject: [PATCH] =?UTF-8?q?fix=20:=20Unclear=20test=20output=20use-array.m?= =?UTF-8?q?ap-to-dynamically-render-=E2=80=A6=20(#38191)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../use-array.map-to-dynamically-render-elements.english.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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: