fix(curriculum): update cat painting step 62-64 asserts (#60578)

Co-authored-by: neo <neo@localhost.localdomain>
This commit is contained in:
Neal Frazier
2025-05-29 15:36:32 -04:00
committed by GitHub
parent 50c8021550
commit 9328507f18
3 changed files with 7 additions and 7 deletions
@@ -14,7 +14,7 @@ Rotate the right mouth line at `165` degrees.
Your `.cat-mouth-line-right` selector should have a `transform` property set to `rotate(165deg)`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-mouth-line-right')?.transform === 'rotate(165deg)')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-mouth-line-right')?.transform, 'rotate(165deg)');
```
# --seed--
@@ -16,13 +16,13 @@ Create a `div` element with the class `cat-whiskers`.
You should create a `div` element.
```js
assert(document.querySelectorAll('div').length === 16)
assert.lengthOf(document.querySelectorAll('div'), 16);
```
Your div element should have the class `cat-whiskers`.
```js
assert(document.querySelectorAll('div')[15].classList.contains('cat-whiskers'))
assert.isTrue(document.querySelectorAll('div')[15].classList.contains('cat-whiskers'));
```
# --seed--
@@ -14,25 +14,25 @@ Inside the `.cat-whiskers` element, create two `div` elements with the class `ca
You should not change the existing `div` element with the class `cat-whiskers`
```js
assert(document.querySelectorAll('div.cat-whiskers').length === 1)
assert.lengthOf(document.querySelectorAll('div.cat-whiskers'), 1);
```
You should have two `div` elements inside the `.cat-whiskers` element.
```js
assert(document.querySelectorAll('.cat-whiskers div').length === 2)
assert.lengthOf(document.querySelectorAll('.cat-whiskers div'), 2);
```
The first `div` element inside the `.cat-whiskers` element should have the class `cat-whiskers-left`.
```js
assert(document.querySelectorAll('.cat-whiskers div')[0].classList.contains('cat-whiskers-left'))
assert.isTrue(document.querySelectorAll('.cat-whiskers div')[0].classList.contains('cat-whiskers-left'));
```
The second `div` element inside the `.cat-whiskers` element should have the class `cat-whiskers-right`.
```js
assert(document.querySelectorAll('.cat-whiskers div')[1].classList.contains('cat-whiskers-right'))
assert.isTrue(document.querySelectorAll('.cat-whiskers div')[1].classList.contains('cat-whiskers-right'));
```
# --seed--