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
This commit is contained in:
@ -686,7 +686,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "bd7993c9ca9feddfaeb7bdef",
|
"id": "bd7993c9ca9feddfaeb7bdef",
|
||||||
"title": "Divide one Decimal by Another with JavaScript",
|
"title": "Divide One Decimal by Another with JavaScript",
|
||||||
"description": [
|
"description": [
|
||||||
"Now let's divide one decimal by another.",
|
"Now let's divide one decimal by another.",
|
||||||
"<hr>",
|
"<hr>",
|
||||||
@ -704,7 +704,7 @@
|
|||||||
"tests": [
|
"tests": [
|
||||||
"assert(quotient === 2.2, 'message: The variable <code>quotient</code> should equal <code>2.2</code>');",
|
"assert(quotient === 2.2, 'message: The variable <code>quotient</code> should equal <code>2.2</code>');",
|
||||||
"assert(/4\\.40*\\s*\\/\\s*2\\.*0*/.test(code), 'message: You should use the <code>/</code> operator to divide 4.4 by 2');",
|
"assert(/4\\.40*\\s*\\/\\s*2\\.*0*/.test(code), 'message: You should use the <code>/</code> 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",
|
"type": "waypoint",
|
||||||
"challengeType": 1,
|
"challengeType": 1,
|
||||||
|
Reference in New Issue
Block a user