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:
Duong The Pham
2024-06-11 02:06:02 +07:00
committed by GitHub
parent a8f7e15dc2
commit be11225f11

View File

@@ -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--