Skip to content

Commit 9328507

Browse files
1nc0gn30neo
andauthored
fix(curriculum): update cat painting step 62-64 asserts (freeCodeCamp#60578)
Co-authored-by: neo <[email protected]>
1 parent 50c8021 commit 9328507

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f0c9a1e3360092d1bbd33.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Rotate the right mouth line at `165` degrees.
1414
Your `.cat-mouth-line-right` selector should have a `transform` property set to `rotate(165deg)`.
1515

1616
```js
17-
assert(new __helpers.CSSHelp(document).getStyle('.cat-mouth-line-right')?.transform === 'rotate(165deg)')
17+
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-mouth-line-right')?.transform, 'rotate(165deg)');
1818
```
1919
2020
# --seed--

curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f0ce5737243098ad6e494.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ Create a `div` element with the class `cat-whiskers`.
1616
You should create a `div` element.
1717

1818
```js
19-
assert(document.querySelectorAll('div').length === 16)
19+
assert.lengthOf(document.querySelectorAll('div'), 16);
2020
```
2121

2222
Your div element should have the class `cat-whiskers`.
2323

2424
```js
25-
assert(document.querySelectorAll('div')[15].classList.contains('cat-whiskers'))
25+
assert.isTrue(document.querySelectorAll('div')[15].classList.contains('cat-whiskers'));
2626
```
2727

2828
# --seed--

curriculum/challenges/english/25-front-end-development/workshop-cat-painting/646f0ef13604420a8744f7d4.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ Inside the `.cat-whiskers` element, create two `div` elements with the class `ca
1414
You should not change the existing `div` element with the class `cat-whiskers`
1515

1616
```js
17-
assert(document.querySelectorAll('div.cat-whiskers').length === 1)
17+
assert.lengthOf(document.querySelectorAll('div.cat-whiskers'), 1);
1818
```
1919

2020
You should have two `div` elements inside the `.cat-whiskers` element.
2121

2222
```js
23-
assert(document.querySelectorAll('.cat-whiskers div').length === 2)
23+
assert.lengthOf(document.querySelectorAll('.cat-whiskers div'), 2);
2424
```
2525

2626
The first `div` element inside the `.cat-whiskers` element should have the class `cat-whiskers-left`.
2727

2828
```js
29-
assert(document.querySelectorAll('.cat-whiskers div')[0].classList.contains('cat-whiskers-left'))
29+
assert.isTrue(document.querySelectorAll('.cat-whiskers div')[0].classList.contains('cat-whiskers-left'));
3030
```
3131

3232
The second `div` element inside the `.cat-whiskers` element should have the class `cat-whiskers-right`.
3333

3434
```js
35-
assert(document.querySelectorAll('.cat-whiskers div')[1].classList.contains('cat-whiskers-right'))
35+
assert.isTrue(document.querySelectorAll('.cat-whiskers div')[1].classList.contains('cat-whiskers-right'));
3636
```
3737

3838
# --seed--

0 commit comments

Comments
 (0)