From 222f0852dbf774058af95f172bf3f42c87e8ec8d Mon Sep 17 00:00:00 2001 From: Noor Rida <45927330+loralridz@users.noreply.github.com> Date: Sat, 10 May 2025 05:40:49 -0400 Subject: [PATCH] fix(curriculum): updated cat-painting-workshop steps 42-43 to specific assert methods (#60264) --- .../workshop-cat-painting/646ddf888632fa67f1180940.md | 6 +++--- .../workshop-cat-painting/646de5dc8988076a1d992afd.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646ddf888632fa67f1180940.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646ddf888632fa67f1180940.md index 04305124296..6b966c0eb98 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646ddf888632fa67f1180940.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646ddf888632fa67f1180940.md @@ -14,19 +14,19 @@ Move the left eye into position with a `position` property of `absolute`, a `top Your `.cat-left-eye` selector should have a `position` property set to `absolute`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-left-eye')?.position === 'absolute') +assert.equal( new __helpers.CSSHelp(document).getStyle('.cat-left-eye')?.position, 'absolute') ``` Your `.cat-left-eye` selector should have a `top` property set to `54px`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-left-eye')?.top === '54px') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-eye')?.top, '54px') ``` Your `.cat-left-eye` selector should have a `left` property set to `39px`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-left-eye')?.left === '39px') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-eye')?.left, '39px') ``` # --seed-- diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646de5dc8988076a1d992afd.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646de5dc8988076a1d992afd.md index ca444cecd18..56f5714d17d 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646de5dc8988076a1d992afd.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646de5dc8988076a1d992afd.md @@ -14,13 +14,13 @@ To make the left eye look like an eye, give it a border radius of `60%`. Also, u Your `.cat-left-eye` selector should have a `border-radius` property set to `60%`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-left-eye')?.borderRadius === '60%') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-eye')?.borderRadius, '60%') ``` Your `.cat-left-eye` selector should have a `transform` property set to `rotate(25deg)`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-left-eye')?.transform === 'rotate(25deg)') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-eye')?.transform, 'rotate(25deg)') ``` # --seed--