Skip to content

Commit f4e31b2

Browse files
chore(curriculum): update step 78 workshop magazine to use specific asserts (freeCodeCamp#61388)
1 parent 1cc0be7 commit f4e31b2

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

curriculum/challenges/english/25-front-end-development/workshop-magazine/6148f693e0728f77c87f3020.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,40 +14,40 @@ Create a third `@media` query for `only screen` with a `max-width` of `550px`. W
1414
You should have a new `@media` query for `only screen` with a `max-width` of `550px`. This should come after your previous two.
1515

1616
```js
17-
assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.media?.mediaText === 'only screen and (max-width: 550px)');
17+
assert.equal(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.media?.mediaText, 'only screen and (max-width: 550px)');
1818
```
1919
2020
Your new `@media` rule should have a `.hero-title` selector, a `.hero-subtitle, .author, .quote, .list-title` selector, a `.social-icons` selector, and a `.text` selector. These selectors should be in this order.
2121
2222
```js
23-
assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[0]?.selectorText === '.hero-title');
24-
assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[1]?.selectorText === '.hero-subtitle, .author, .quote, .list-title');
25-
assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[2]?.selectorText === '.social-icons');
26-
assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[3]?.selectorText === '.text');
23+
assert.equal(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[0]?.selectorText, '.hero-title');
24+
assert.equal(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[1]?.selectorText, '.hero-subtitle, .author, .quote, .list-title');
25+
assert.equal(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[2]?.selectorText, '.social-icons');
26+
assert.equal(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[3]?.selectorText, '.text');
2727
```
2828
2929
Your `.hero-title` selector should have a `font-size` set to `6rem`.
3030
3131
```js
32-
assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[0]?.style?.fontSize === '6rem');
32+
assert.equal(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[0]?.style?.fontSize, '6rem');
3333
```
3434
3535
Your `.hero-subtitle, .author, .quote, .list-title` selector should have a `font-size` set to `1.8rem`.
3636
3737
```js
38-
assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[1]?.style?.fontSize === '1.8rem');
38+
assert.equal(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[1]?.style?.fontSize, '1.8rem');
3939
```
4040
4141
Your `.social-icons` selector should have a `font-size` set to `2rem`.
4242
4343
```js
44-
assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[2]?.style?.fontSize === '2rem');
44+
assert.equal(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[2]?.style?.fontSize, '2rem');
4545
```
4646
4747
Your `.text` selector should have a `font-size` set to `1.6rem`.
4848
4949
```js
50-
assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[3]?.style?.fontSize === '1.6rem');
50+
assert.equal(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[3]?.style?.fontSize, '1.6rem');
5151
```
5252
5353
# --seed--

0 commit comments

Comments
 (0)