Skip to content

Commit ce5d7b3

Browse files
chore(curriculum): update assert methods cat painting workshop steps 48-49 (freeCodeCamp#60299)
1 parent d9afa54 commit ce5d7b3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,31 @@ Move the left inner eye into position with a `position` property of `absolute`,
1414
Your `.cat-left-inner-eye` selector should have a `position` property set to `absolute`.
1515

1616
```js
17-
assert(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.position === 'absolute')
17+
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.position, 'absolute')
1818
```
1919
2020
Your `.cat-left-inner-eye` selector should have a `top` property set to `8px`.
2121
2222
```js
23-
assert(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.top === '8px')
23+
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.top, '8px')
2424
```
2525
2626
Your `.cat-left-inner-eye` selector should have a `left` property set to `2px`.
2727
2828
```js
29-
assert(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.left === '2px')
29+
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.left, '2px')
3030
```
3131
3232
Your `.cat-left-inner-eye` selector should have a `border-radius` property set to `60%`.
3333
3434
```js
35-
assert(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.borderRadius === '60%')
35+
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.borderRadius, '60%')
3636
```
3737
3838
Your `.cat-left-inner-eye` selector should have a `transform` property set to `10deg`.
3939
4040
```js
41-
assert(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.transform === 'rotate(10deg)')
41+
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.transform, 'rotate(10deg)')
4242
```
4343
4444
# --seed--

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ Using a class selector, give your `.cat-right-inner-eye` element a width of `10p
1414
You should have a `.cat-right-inner-eye` selector.
1515

1616
```js
17-
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye'))
17+
assert.exists(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye'))
1818
```
1919

2020
Your `.cat-right-inner-eye` selector should have a `width` set to `10px`.
2121

2222
```js
23-
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.width === '10px')
23+
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.width, '10px')
2424
```
2525
2626
Your `.cat-right-inner-eye` selector should have a `height` set to `20px`.
2727
2828
```js
29-
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.height === '20px')
29+
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.height, '20px')
3030
```
3131
3232
Your `.cat-right-inner-eye` selector should have a `background-color` set to `#fff`.
3333
3434
```js
35-
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.backgroundColor === 'rgb(255, 255, 255)')
35+
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-eye')?.backgroundColor, 'rgb(255, 255, 255)')
3636
```
3737
3838
# --seed--

0 commit comments

Comments
 (0)