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:
a2937
2023-12-17 23:24:11 -05:00
committed by GitHub
parent dfbf00311c
commit 0a385e4bed

View File

@@ -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--