From ff8b13b316747cf8f24405b31f4ff8c632c92c5e Mon Sep 17 00:00:00 2001 From: manjeet5 Date: Tue, 29 May 2018 13:47:52 -0400 Subject: [PATCH] fix(challenges): Corrected a test case for challenge (#17162) For the last test case in 'Access Props using this.props' challenge, I updated the test condition to check that the value of the tempPassword prop is the same as the content within the tags. This test case will ensure that there is text present in the strong tag and its value is as expected. BREAKING CHANGE: none Closes #17134 --- challenges/03-front-end-libraries/react.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/03-front-end-libraries/react.json b/challenges/03-front-end-libraries/react.json index 2041950659..6b5e529ad3 100644 --- a/challenges/03-front-end-libraries/react.json +++ b/challenges/03-front-end-libraries/react.json @@ -1325,7 +1325,7 @@ }, { "text": "The ReturnTempPassword component should display the password you create as the tempPassword prop within strong tags.", - "testString": "assert((function() { const mockedComponent = Enzyme.mount(React.createElement(ResetPassword)); return mockedComponent.find('strong').text() && mockedComponent.find('ReturnTempPassword').props().tempPassword; })(), 'The ReturnTempPassword component should display the password you create as the tempPassword prop within strong tags.');" + "testString": "assert((function() { const mockedComponent = Enzyme.mount(React.createElement(ResetPassword)); return mockedComponent.find('strong').text() === mockedComponent.find('ReturnTempPassword').props().tempPassword; })(), 'The ReturnTempPassword component should display the password you create as the tempPassword prop within strong tags.');" } ], "solutions": [