mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-09 21:01:20 -04:00
fix(curriculum): fix issue with test in JS Todo step 13 (#55121)
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> Co-authored-by: Kolade Chris <65571316+Ksound22@users.noreply.github.com>
This commit is contained in:
@@ -16,13 +16,13 @@ To see the new result, click on the `"Add New Task"` button. Then add a title an
|
||||
Your `taskObj` should have an `id` property.
|
||||
|
||||
```js
|
||||
assert.match(code, /const\s+taskObj\s*=\s*\{\s*id/)
|
||||
assert.match(code, /const\s+taskObj\s*=\s*\{\s*("|'|)id\1/)
|
||||
```
|
||||
|
||||
Your `id` property should have the value of the `titleInput.value`.
|
||||
The `id` property of your `taskObj` object should be set to `titleInput.value`.
|
||||
|
||||
```js
|
||||
assert.match(code, /const\s+taskObj\s*=\s*\{\s*id:\s*titleInput\.value/)
|
||||
assert.match(code, /const\s+taskObj\s*=\s*\{\s*("|'|)id\1\s*:\s*titleInput\.value\s*,?\s*\}/)
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user