From e0274556fa346b089488eb33aa22ab35ebff909b Mon Sep 17 00:00:00 2001 From: Shaurya Bisht <87357655+ShauryaDusht@users.noreply.github.com> Date: Mon, 28 Apr 2025 17:45:17 +0530 Subject: [PATCH] fix(curriculum): correct assert usage in workshop-cat-painting (#60028) --- .../workshop-cat-painting/646c59e942f35541923104bf.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646c59e942f35541923104bf.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646c59e942f35541923104bf.md index d483fe5c8f8..de7969559c4 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646c59e942f35541923104bf.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646c59e942f35541923104bf.md @@ -14,25 +14,25 @@ Back in your HTML, create a `main` element. Inside that `main` element, add a `d You should have a `main` element. ```js -assert(document.querySelectorAll('main').length === 1); +assert.lengthOf(document.querySelectorAll('main'), 1); ``` You should have a `div` element. ```js -assert(document.querySelectorAll('div').length === 1); +assert.lengthOf(document.querySelectorAll('div'), 1); ``` Your `div` element should have the class `cat-head`. ```js -assert(document.querySelector('div')?.getAttribute('class') === 'cat-head'); +assert.equal(document.querySelector('div')?.getAttribute('class'), 'cat-head'); ``` Your `div` element should be inside your `main` tag. ```js -assert(document.querySelectorAll('main div').length === 1); +assert.lengthOf(document.querySelectorAll('main div'), 1); ``` # --seed--