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 #16329pull/18182/head
parent
ac37176d1b
commit
edc37e76d3
|
@ -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.",
|
||||
"<hr>",
|
||||
|
@ -704,7 +704,7 @@
|
|||
"tests": [
|
||||
"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(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,
|
||||
|
|
Loading…
Reference in New Issue