mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-02 20:02:00 -05:00
fix(curriculum): check for assignment operator (#49904)
fix(curriculum): updated third test to check for assignment operator
This commit is contained in:
committed by
GitHub
parent
26d10b455d
commit
a62c7cd190
@@ -32,7 +32,7 @@ assert(/4\.40*\s*\/\s*2\.*0*/.test(code));
|
||||
The quotient variable should only be assigned once
|
||||
|
||||
```js
|
||||
assert(code.match(/quotient/g).length === 1);
|
||||
assert(code.match(/quotient\s*=/g).length === 1);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user