From e2c26a51222607426b1f9e2109b8d89b20d38b89 Mon Sep 17 00:00:00 2001 From: TheChaplain Date: Wed, 11 Jun 2025 12:56:26 +0330 Subject: [PATCH] chore(curriculum): replace assert calls in cat painting steps 78-80 (#60817) --- .../workshop-cat-painting/646f4fe12b7985232bf475a5.md | 2 +- .../workshop-cat-painting/646f507e4d1cd323f17db4fc.md | 8 ++++---- .../workshop-cat-painting/646f516dbfc1342495515625.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4fe12b7985232bf475a5.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4fe12b7985232bf475a5.md index f066736a34d..19113615256 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4fe12b7985232bf475a5.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f4fe12b7985232bf475a5.md @@ -14,7 +14,7 @@ Rotate the right middle whisker at -3 degrees. Your `.cat-whisker-right-middle` selector should have a `transform` property set to `rotate(-3deg)`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.transform === 'rotate(-3deg)') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.transform, 'rotate(-3deg)'); ``` # --seed-- diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f507e4d1cd323f17db4fc.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f507e4d1cd323f17db4fc.md index ce448a1b522..31306e780a7 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f507e4d1cd323f17db4fc.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f507e4d1cd323f17db4fc.md @@ -15,25 +15,25 @@ Use class selector to target the `.cat-whisker-right-bottom` element, then move You should have a `.cat-whisker-right-bottom` selector. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-bottom')) +assert.exists(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-bottom')); ``` Your `.cat-whisker-right-bottom` selector should have a `position` property set to `absolute`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-bottom')?.position === 'absolute') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-bottom')?.position, 'absolute'); ``` Your `.cat-whisker-right-bottom` selector should have a `top` property set to `134px`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-bottom')?.top === '134px') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-bottom')?.top, '134px'); ``` Your `.cat-whisker-right-bottom` selector should have a `left` property set to `109px`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-bottom')?.left === '109px') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-bottom')?.left, '109px'); ``` # --seed-- diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f516dbfc1342495515625.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f516dbfc1342495515625.md index a5c0f620a06..b5cf17c10b6 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f516dbfc1342495515625.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f516dbfc1342495515625.md @@ -16,7 +16,7 @@ With this final step, your cat painting is now complete. Your `.cat-whisker-right-bottom` selector should have a `transform` property set to `rotate(3deg)`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-bottom')?.transform === 'rotate(3deg)') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-bottom')?.transform, 'rotate(3deg)'); ``` # --seed--