fix(curriculum): update assertion syntax for CSS properties in cat painting (#60139)

This commit is contained in:
Gupta Shubham
2025-05-04 14:00:14 +05:30
committed by GitHub
parent 7e72a817bc
commit c796ea3dca
5 changed files with 5 additions and 5 deletions

View File

@@ -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--

View File

@@ -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--

View File

@@ -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--

View File

@@ -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--

View File

@@ -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--