From 1eda9b1db81b75724a0af35f067c118a4680a5d8 Mon Sep 17 00:00:00 2001 From: Idowu Daniel Date: Fri, 16 May 2025 17:50:25 +0100 Subject: [PATCH] chore(curriculum): update cat painting workshops steps 50-51 to use specific asserts (#60389) --- .../workshop-cat-painting/646dec359bef3b7811fba5a6.md | 10 +++++----- .../workshop-cat-painting/646dedbcba062079128b2ecc.md | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dec359bef3b7811fba5a6.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dec359bef3b7811fba5a6.md index 612bab6e55f..f5fa19f7d9f 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dec359bef3b7811fba5a6.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dec359bef3b7811fba5a6.md @@ -14,31 +14,31 @@ Move the right inner eye into position with a `position` of `absolute`, a `top` Your `.cat-right-inner-eye` selector should have a `position` property set to `absolute`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.position === 'absolute') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.position, 'absolute'); ``` Your `.cat-right-inner-eye` selector should have a `top` property set to ` 8px`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.top === '8px') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.top, '8px'); ``` Your `.cat-right-inner-eye` selector should have a `left` property set to `18px`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.left === '18px') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.left, '18px'); ``` Your `.cat-right-inner-eye` selector should have a `border-radius` property set to `60%`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.borderRadius === '60%') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.borderRadius, '60%'); ``` Your `.cat-right-inner-eye` selector should have a `transform` property set to `-5deg`. ```js -assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.transform === 'rotate(-5deg)') +assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.transform, 'rotate(-5deg)'); ``` # --seed-- diff --git a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dedbcba062079128b2ecc.md b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dedbcba062079128b2ecc.md index 67e9ddb5a01..a84525d37e0 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dedbcba062079128b2ecc.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646dedbcba062079128b2ecc.md @@ -14,13 +14,13 @@ It's time to work on the nose. In your HTML, create a `div` element with the cla You should create a `div` element. ```js -assert(document.querySelectorAll('div').length === 12) +assert.lengthOf(document.querySelectorAll('div'), 12); ``` Your `div` element should have the class `cat-nose`. ```js -assert(document.querySelectorAll('div')[11].classList.contains('cat-nose')) +assert.isTrue(document.querySelectorAll('div')[11].classList.contains('cat-nose')); ``` # --seed--