mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): updated cat-painting-workshop steps 42-43 to specific assert methods (#60264)
This commit is contained in:
+3
-3
@@ -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--
|
||||
|
||||
+2
-2
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user