From dfb8c93d30555afac5a75324ed9cd0960b3538d8 Mon Sep 17 00:00:00 2001 From: daniel-chung Date: Tue, 7 Jun 2016 21:15:58 -0400 Subject: [PATCH] Clarify error message in basic-javascript challenge Removes the enclosing parentheses in the second assert error message for the basic-javascript challenge 'Escaping Literal Quotes'. Previous error message was: Variable myStr should equal to (I am a "double quoted" string inside "double quotes"). The new error message is now: Variable myStr should contain the string: I am a "double quoted" string inside "double quotes". --- .../basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index 52704829bf..ebef753456 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -973,7 +973,7 @@ ], "tests": [ "assert(code.match(/\\\\\"/g).length === 4 && code.match(/[^\\\\]\"/g).length === 2, 'message: You should use two double quotes (") and four escaped double quotes (\").');", - "assert(myStr === \"I am a \\\"double quoted\\\" string inside \\\"double quotes\\\".\", 'message: Variable myStr should equal to (I am a \"double quoted\" string inside \"double quotes\".).');" + "assert(myStr === \"I am a \\\"double quoted\\\" string inside \\\"double quotes\\\".\", 'message: Variable myStr should contain the string: I am a \"double quoted\" string inside \"double quotes\".');" ], "type": "waypoint", "challengeType": 1,