From be11225f112cbfa6a17f7c2081ae014e690c4dd9 Mon Sep 17 00:00:00 2001 From: Duong The Pham Date: Tue, 11 Jun 2024 02:06:02 +0700 Subject: [PATCH] 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> --- .../660d8ca387f989d6b25a3343.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/660d8ca387f989d6b25a3343.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/660d8ca387f989d6b25a3343.md index 30de1646e48..b5693a9c5e5 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/660d8ca387f989d6b25a3343.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/660d8ca387f989d6b25a3343.md @@ -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--