fix(curriculum): updated cat-painting-workshop steps 42-43 to specific assert methods (#60264)

This commit is contained in:
Noor Rida
2025-05-10 05:40:49 -04:00
committed by GitHub
parent 7144b04333
commit 222f0852db
2 changed files with 5 additions and 5 deletions
@@ -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--
@@ -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--