mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
chore(curriculum): replace assert calls in cat painting steps 78-80 (#60817)
This commit is contained in:
+1
-1
@@ -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--
|
||||
|
||||
+4
-4
@@ -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--
|
||||
|
||||
+1
-1
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user