From 4ff5e6eff619ca392ca6dfcfc692a473a4d4b306 Mon Sep 17 00:00:00 2001 From: SomeDer <48731521+SomeDer@users.noreply.github.com> Date: Mon, 12 Aug 2019 09:50:13 +0100 Subject: [PATCH] Add code tag to test in extract-state-logic-to-redux (#36553) --- .../react-and-redux/extract-state-logic-to-redux.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/03-front-end-libraries/react-and-redux/extract-state-logic-to-redux.english.md b/curriculum/challenges/english/03-front-end-libraries/react-and-redux/extract-state-logic-to-redux.english.md index c68e210a4d..974e174713 100644 --- a/curriculum/challenges/english/03-front-end-libraries/react-and-redux/extract-state-logic-to-redux.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/react-and-redux/extract-state-logic-to-redux.english.md @@ -24,7 +24,7 @@ Then create a reducer called messageReducer() that handles the stat tests: - text: The const ADD should exist and hold a value equal to the string ADD testString: assert(ADD === 'ADD'); - - text: The action creator addMessage should return an object with type equal to ADD and message equal to the message that is passed in. + - text: The action creator addMessage should return an object with type equal to ADD and message equal to the message that is passed in. testString: assert((function() { const addAction = addMessage('__TEST__MESSAGE__'); return addAction.type === ADD && addAction.message === '__TEST__MESSAGE__'; })()); - text: messageReducer should be a function. testString: assert(typeof messageReducer === 'function');