mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-10 09:05:55 -05:00
fix(curriculum): allow space in cafe css project step 36 (#52564)
Co-authored-by: Lasse Jørgensen <28780271+lasjorg@users.noreply.github.com>
This commit is contained in:
@@ -16,19 +16,23 @@ To get them on the same line, you need to apply some styling to the `p` elements
|
||||
You should apply the `item` class to your `article` element.
|
||||
|
||||
```js
|
||||
assert(code.match(/<article\s*class=('|")item\1\s*>/i))
|
||||
const el = document.querySelector('article.item');
|
||||
assert.exists(el);
|
||||
```
|
||||
|
||||
You should only have one `item` class element.
|
||||
|
||||
```js
|
||||
assert($('.item').length === 1);
|
||||
const elements = document.querySelectorAll('.item');
|
||||
assert.lengthOf(elements, 1);
|
||||
```
|
||||
|
||||
Your first `article` element should have the `item` class.
|
||||
|
||||
```js
|
||||
assert($('article')[0].className === 'item');
|
||||
const el = document.querySelectorAll('article')[0];
|
||||
|
||||
assert.equal(el.className, 'item');
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user