Skip to content

Commit 6a2b95d

Browse files
fix(curriculum): allow image placement in any order (freeCodeCamp#59585)
Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com>
1 parent 0c0817c commit 6a2b95d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

curriculum/challenges/english/25-front-end-development/lab-event-hub/66ebd4ae2812430bb883c787.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,11 @@ assert.strictEqual(h3Elements.length, 2);
204204
Both of the `article` elements inside the `#past-events` section should have a paragraph element for the event description.
205205
206206
```js
207-
const pElement = document.querySelectorAll('#past-events article h3+p').length;
208-
assert.strictEqual(pElement, 2);
207+
const articles = document.querySelectorAll('#past-events article');
208+
assert.isNotEmpty(articles);
209+
articles.forEach(article => {
210+
assert.isAtLeast(article.querySelectorAll('h3 ~ p').length, 1);
211+
});
209212
```
210213
211214
Both of the `article` elements inside the `#past-events` section should have an image element.

0 commit comments

Comments
 (0)