From a9b694a9273c63d03ef9c47e2baad2eef23d13b2 Mon Sep 17 00:00:00 2001 From: Robert Richey Date: Thu, 31 Dec 2015 07:37:58 -0700 Subject: [PATCH] Fix test on Waypoint: Concatenating Strings with Plus Operator Second test case now allows for either single or double quotes. Test uses verbose regex to help eliminate edge cases. closes #5583 --- .../basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index 3e5bcf7a68..34617875a3 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -970,7 +970,7 @@ ], "tests": [ "assert(myStr === \"This is the start. This is the end.\", 'message: myStr should have a value of This is the start. This is the end.');", - "assert(code.match(/\"\\s*\\+\\s*\"/g).length > 1, 'message: Use the + operator to build myStr');" + "assert(code.match(/This is the start\\.\\s*[\"']\\s*(.)\\s*[\"']This is the end\\.[\"'];\\s*$/)[1] === \"+\", 'message: Use the + operator to build myStr');" ], "type": "waypoint", "challengeType": "1",