From 62091ed26586b03e8bb80886f0feb28228131ed7 Mon Sep 17 00:00:00 2001 From: Faris <144804581+shaikhFaris@users.noreply.github.com> Date: Fri, 2 May 2025 04:00:45 +0530 Subject: [PATCH] fix(curriculum): updated assert methods (#60089) --- .../646ce9d790d2a44de5f99e04.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646ce9d790d2a44de5f99e04.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646ce9d790d2a44de5f99e04.md index 9876c6dd360..2f6959531c7 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646ce9d790d2a44de5f99e04.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646ce9d790d2a44de5f99e04.md @@ -14,37 +14,37 @@ Create two `div` elements, the first inside the `.cat-left-ear` element with a c You should not change the existing `div` element with the class `cat-left-ear`. ```js -assert(document.querySelectorAll('div.cat-left-ear').length === 1); +assert.lengthOf(document.querySelectorAll('div.cat-left-ear'), 1); ``` You should not change the existing `div` element with the class `cat-right-ear`. ```js -assert(document.querySelectorAll('div.cat-right-ear').length === 1); +assert.lengthOf(document.querySelectorAll('div.cat-right-ear'), 1); ``` You should have one `div` element inside your `.cat-left-ear` element. ```js -assert(document.querySelectorAll('.cat-left-ear div').length === 1); +assert.lengthOf(document.querySelectorAll('.cat-left-ear div'), 1); ``` You should have one `div` element inside your `.cat-right-ear` element. ```js -assert(document.querySelectorAll('.cat-right-ear div').length === 1); +assert.lengthOf(document.querySelectorAll('.cat-right-ear div'), 1); ``` The new `div` element inside `.cat-left-ear` should have the class `cat-left-inner-ear`. ```js -assert(document.querySelectorAll('.cat-left-ear div')[0]?.classList.contains('cat-left-inner-ear')); +assert.isTrue(document.querySelectorAll('.cat-left-ear div')[0]?.classList.contains('cat-left-inner-ear')); ``` The new `div` element inside `.cat-right-ear` should have the class `cat-right-inner-ear`. ```js -assert(document.querySelectorAll('.cat-right-ear div')[0]?.classList.contains('cat-right-inner-ear')); +assert.isTrue(document.querySelectorAll('.cat-right-ear div')[0]?.classList.contains('cat-right-inner-ear')); ``` # --seed--