mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-30 03:03:06 -05:00
fix(curriculum): Updated tests to allow local variables to end with first/last (#52200)
This commit is contained in:
@@ -32,13 +32,13 @@ assert.match(code, /const\s+Person\s*=\s*function\s*\(\s*first\s*,\s*last\s*\)\s
|
||||
You should not reassign the `first` parameter.
|
||||
|
||||
```js
|
||||
assert.notMatch(code, /first\s*=\s*/);
|
||||
assert.notMatch(code, /\bfirst\s*=\s*/);
|
||||
```
|
||||
|
||||
You should not reassign the `last` parameter.
|
||||
|
||||
```js
|
||||
assert.notMatch(code, /last\s*=\s*/);
|
||||
assert.notMatch(code, /\blast\s*=\s*/);
|
||||
```
|
||||
|
||||
No properties should be added. `Object.keys(Person).length` should always return 6.
|
||||
|
||||
Reference in New Issue
Block a user