From c55e98d3eea223e50ee74bcd0b5a7efde2e4bcd0 Mon Sep 17 00:00:00 2001 From: Arakhsh Qanit <163685503+ArakhshQ@users.noreply.github.com> Date: Tue, 6 May 2025 13:47:30 +0500 Subject: [PATCH] chore(curriculum): Cat painting workshop updated to use specific assert methods step 36-37 (#60170) --- .../workshop-cat-painting/646dd8c79ec23463a3d0e356.md | 8 ++++---- .../workshop-cat-painting/646dd9d9a729916460724f16.md | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dd8c79ec23463a3d0e356.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dd8c79ec23463a3d0e356.md index c2f979d3992..e6d30c8a93b 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dd8c79ec23463a3d0e356.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dd8c79ec23463a3d0e356.md @@ -14,25 +14,25 @@ It's time to work on the right inner ear. Using a class selector, give your `.ca You should have a `.cat-right-inner-ear` selector. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')) +assert.exists(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')) ``` Your `.cat-right-inner-ear` selector should have a `border-left` property set to `20px solid transparent`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderLeft === '20px solid transparent') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderLeft, '20px solid transparent') ``` Your `.cat-right-inner-ear` selector should have a `border-right` property set to `20px solid transparent`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderRight === '20px solid transparent') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderRight, '20px solid transparent') ``` Your `.cat-right-inner-ear` selector should have a `border-bottom` property set to `40px solid #3b3b4f`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderBottom === '40px solid rgb(59, 59, 79)') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderBottom, '40px solid rgb(59, 59, 79)') ``` # --seed-- diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dd9d9a729916460724f16.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dd9d9a729916460724f16.md index 79329e7c4d9..fdcb412eff1 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dd9d9a729916460724f16.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dd9d9a729916460724f16.md @@ -14,19 +14,19 @@ Move the right inner ear into position with a `position` property set to `absolu Your `.cat-right-inner-ear` selector should have a `position` property set to `absolute`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.position === 'absolute') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.position, 'absolute') ``` Your `.cat-right-inner-ear` selector should have a `top` property set to `22px`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.top === '22px') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.top, '22px') ``` Your `.cat-right-inner-ear` selector should have a `left` property set to `-20px`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.left === '-20px') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.left, '-20px') ``` # --seed--