mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): update cat painting step 62-64 asserts (#60578)
Co-authored-by: neo <neo@localhost.localdomain>
This commit is contained in:
+1
-1
@@ -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--
|
||||
|
||||
+2
-2
@@ -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--
|
||||
|
||||
+4
-4
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user