mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-05 18:01:45 -04:00
fix(curriculum): update assertion syntax for CSS properties in cat painting (#60139)
This commit is contained in:
@@ -18,7 +18,7 @@ Set the `transform` property to `rotate(-45deg)` and see what happens.
|
||||
You should set the `transform` property of your `.cat-left-ear` element to `rotate(-45deg)`. Don't forget to add a semicolon.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-left-ear')?.transform === 'rotate(-45deg)')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-ear')?.transform, 'rotate(-45deg)')
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
@@ -14,7 +14,7 @@ As you did for the left ear, rotate the right ear at 45 degrees.
|
||||
You should set the `transform` property of your `.cat-right-ear` element to `rotate(45deg)`. Don't forget to add a semicolon.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-ear')?.transform === 'rotate(45deg)')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-ear')?.transform, 'rotate(45deg)')
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
@@ -18,7 +18,7 @@ To see `z-index` in action, set the `z-index` property of the left ear to `-1`.
|
||||
Your `.cat-left-ear` selector should have a `z-index` of `-1`. Don't forget to add a semicolon.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-left-ear')?.zIndex === '-1')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-ear')?.zIndex, '-1')
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
@@ -16,7 +16,7 @@ Instead of `-1`, set the `z-index` property of the left ear to `1`.
|
||||
Your `.cat-left-ear` selector should have a `z-index` of `1`. Don't forget to add a semicolon.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-left-ear')?.zIndex === '1')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-ear')?.zIndex, '1')
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
@@ -14,7 +14,7 @@ Set the `z-index` property of the right ear to `1` so it always stays over the h
|
||||
Your `.cat-right-ear` selector should have a `z-index` of `1`. Don't forget to add a semicolon.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-ear')?.zIndex === '1')
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-ear')?.zIndex, '1')
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user