mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-04 18:05:32 -05:00
fix(curriculum): test that assignment is unchanged (#50490)
* fix(curriculum): test that assignment is unchanged * chore: apply gikf's review Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> --------- Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
This commit is contained in:
@@ -51,6 +51,12 @@ Your code should use dot and bracket notation to access `myStorage`.
|
||||
assert(/=\s*myStorage\.car\.inside\[\s*("|')glove box\1\s*\]/g.test(code));
|
||||
```
|
||||
|
||||
`gloveBoxContents` should still be declared with `const`.
|
||||
|
||||
```js
|
||||
assert.match(code, /const\s+gloveBoxContents\s*=/)
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
## --after-user-code--
|
||||
|
||||
Reference in New Issue
Block a user