mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-05 09:01:18 -04:00
chore(curriculum): Cat painting workshop updated to use specific assert methods step 36-37 (#60170)
This commit is contained in:
@@ -14,25 +14,25 @@ It's time to work on the right inner ear. Using a class selector, give your `.ca
|
||||
You should have a `.cat-right-inner-ear` selector.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear'))
|
||||
assert.exists(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear'))
|
||||
```
|
||||
|
||||
Your `.cat-right-inner-ear` selector should have a `border-left` property set to `20px solid transparent`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderLeft === '20px solid transparent')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderLeft, '20px solid transparent')
|
||||
```
|
||||
|
||||
Your `.cat-right-inner-ear` selector should have a `border-right` property set to `20px solid transparent`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderRight === '20px solid transparent')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderRight, '20px solid transparent')
|
||||
```
|
||||
|
||||
Your `.cat-right-inner-ear` selector should have a `border-bottom` property set to `40px solid #3b3b4f`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderBottom === '40px solid rgb(59, 59, 79)')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderBottom, '40px solid rgb(59, 59, 79)')
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
@@ -14,19 +14,19 @@ Move the right inner ear into position with a `position` property set to `absolu
|
||||
Your `.cat-right-inner-ear` selector should have a `position` property set to `absolute`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.position === 'absolute')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.position, 'absolute')
|
||||
```
|
||||
|
||||
Your `.cat-right-inner-ear` selector should have a `top` property set to `22px`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.top === '22px')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.top, '22px')
|
||||
```
|
||||
|
||||
Your `.cat-right-inner-ear` selector should have a `left` property set to `-20px`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.left === '-20px')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.left, '-20px')
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user