From aef4729ce3edf57184d4653ba6a8ebb0dd918b8e Mon Sep 17 00:00:00 2001 From: Clarence Date: Mon, 21 Apr 2025 19:51:52 +0100 Subject: [PATCH] fix(curriculum): update specific methods not used in todo app workshop (#59864) --- .../workshop-todo-app/64e4e78a7ea4a168de4e6a38.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/workshop-todo-app/64e4e78a7ea4a168de4e6a38.md b/curriculum/challenges/english/25-front-end-development/workshop-todo-app/64e4e78a7ea4a168de4e6a38.md index b3bc8f116a1..fd30415c2f4 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-todo-app/64e4e78a7ea4a168de4e6a38.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-todo-app/64e4e78a7ea4a168de4e6a38.md @@ -40,9 +40,9 @@ assert.match(code, /openTaskFormBtn\.addEventListener\(\s*('|"|`)click\1/) Your event listener's callback function should use the `classList.toggle()` method to toggle the `hidden` class on the `taskForm` element. Refer back to the example provided in the description. ```js -assert(taskForm.classList.contains('hidden')); +assert.isTrue(taskForm.classList.contains('hidden')); openTaskFormBtn.click(); -assert(!taskForm.classList.contains('hidden')); +assert.isFalse(taskForm.classList.contains('hidden')); ``` # --seed--