From 2bb4c5565cbaf10ebb17d7c061ee78b3a235d8ce Mon Sep 17 00:00:00 2001 From: Lalit Narayan Yadav <162928571+LalitNarayanYadav@users.noreply.github.com> Date: Thu, 5 Jun 2025 18:11:01 +0530 Subject: [PATCH] =?UTF-8?q?chore(curriculum):=20update=20asserts=20in=20wo?= =?UTF-8?q?rkshop=20cat=20painting=20steps=C2=A075=E2=80=9377=20(#60721)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workshop-cat-painting/646f4d6c42dc5f214f4e7444.md | 8 ++++---- .../workshop-cat-painting/646f4e46e81f7021d5fd9c1d.md | 2 +- .../workshop-cat-painting/646f4f6a14e3c522d130a0d2.md | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4d6c42dc5f214f4e7444.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4d6c42dc5f214f4e7444.md index 0d47a8560d5..b29c20aab31 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4d6c42dc5f214f4e7444.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4d6c42dc5f214f4e7444.md @@ -14,25 +14,25 @@ Now you will work on moving the right whiskers into place. Use class selector to You should have a `.cat-whisker-right-top` selector. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')) +assert.exists(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')); ``` Your `.cat-whisker-right-top` selector should have a `position` property set to `absolute`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.position === 'absolute') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.position, 'absolute'); ``` Your `.cat-whisker-right-top` selector should have a `top` property set to `120px`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.top === '120px') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.top, '120px'); ``` Your `.cat-whisker-right-top` selector should have a `left` property set to `109px`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.left === '109px') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.left, '109px'); ``` # --seed-- diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4e46e81f7021d5fd9c1d.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4e46e81f7021d5fd9c1d.md index d542517bcc7..713051dc70f 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4e46e81f7021d5fd9c1d.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4e46e81f7021d5fd9c1d.md @@ -14,7 +14,7 @@ Rotate the top-right whisker at -10 degrees. Your `.cat-whisker-right-top` selector should have a `transform` property set to `rotate(-10deg)`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.transform === 'rotate(-10deg)') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.transform, 'rotate(-10deg)'); ``` # --seed-- diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4f6a14e3c522d130a0d2.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4f6a14e3c522d130a0d2.md index 0c61b2728be..8f4cc40d0f8 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4f6a14e3c522d130a0d2.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4f6a14e3c522d130a0d2.md @@ -14,25 +14,25 @@ Use a class selector to target the `.cat-whisker-right-middle` element, then mov You should have a `.cat-whisker-right-middle` selector. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')) +assert.exists(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')); ``` Your `.cat-whisker-right-middle` selector should have a `position` property set to `absolute`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.position === 'absolute') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.position, 'absolute'); ``` Your `.cat-whisker-right-middle` selector should have a `top` property set to `127px`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.top === '127px') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.top, '127px'); ``` Your `.cat-whisker-right-middle` selector should have a `left` property set to `109px`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.left === '109px') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.left, '109px'); ``` # --seed--