From edc37e76d3f2e86f6d7daed0edc3da2896929f5c Mon Sep 17 00:00:00 2001 From: Timo Date: Wed, 27 Dec 2017 21:21:42 +0100 Subject: [PATCH] fix(seed): Fix quotient should only be assigned once test The tail is no longer included in the code variable. I updated this test to account for that Closes #16329 --- .../basic-javascript.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json b/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json index 8e04a5359f1..69fb1fedd07 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json +++ b/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json @@ -686,7 +686,7 @@ }, { "id": "bd7993c9ca9feddfaeb7bdef", - "title": "Divide one Decimal by Another with JavaScript", + "title": "Divide One Decimal by Another with JavaScript", "description": [ "Now let's divide one decimal by another.", "
", @@ -704,7 +704,7 @@ "tests": [ "assert(quotient === 2.2, 'message: The variable quotient should equal 2.2');", "assert(/4\\.40*\\s*\\/\\s*2\\.*0*/.test(code), 'message: You should use the / operator to divide 4.4 by 2');", - "assert(code.match(/quotient/g).length === 3, 'message: The quotient variable should only be assigned once');" + "assert(code.match(/quotient/g).length === 1, 'message: The quotient variable should only be assigned once');" ], "type": "waypoint", "challengeType": 1,