mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-05 00:00:18 -04:00
chore(curriculum): update asserts in workshop cat painting steps 75–77 (#60721)
This commit is contained in:
committed by
GitHub
parent
e7a712351e
commit
2bb4c5565c
@@ -14,25 +14,25 @@ Now you will work on moving the right whiskers into place. Use class selector to
|
||||
You should have a `.cat-whisker-right-top` selector.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top'))
|
||||
assert.exists(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top'));
|
||||
```
|
||||
|
||||
Your `.cat-whisker-right-top` selector should have a `position` property set to `absolute`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.position === 'absolute')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.position, 'absolute');
|
||||
```
|
||||
|
||||
Your `.cat-whisker-right-top` selector should have a `top` property set to `120px`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.top === '120px')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.top, '120px');
|
||||
```
|
||||
|
||||
Your `.cat-whisker-right-top` selector should have a `left` property set to `109px`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.left === '109px')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.left, '109px');
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
@@ -14,7 +14,7 @@ Rotate the top-right whisker at -10 degrees.
|
||||
Your `.cat-whisker-right-top` selector should have a `transform` property set to `rotate(-10deg)`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.transform === 'rotate(-10deg)')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.transform, 'rotate(-10deg)');
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
@@ -14,25 +14,25 @@ Use a class selector to target the `.cat-whisker-right-middle` element, then mov
|
||||
You should have a `.cat-whisker-right-middle` selector.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle'))
|
||||
assert.exists(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle'));
|
||||
```
|
||||
|
||||
Your `.cat-whisker-right-middle` selector should have a `position` property set to `absolute`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.position === 'absolute')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.position, 'absolute');
|
||||
```
|
||||
|
||||
Your `.cat-whisker-right-middle` selector should have a `top` property set to `127px`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.top === '127px')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.top, '127px');
|
||||
```
|
||||
|
||||
Your `.cat-whisker-right-middle` selector should have a `left` property set to `109px`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.left === '109px')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.left, '109px');
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user