mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): use assert equal and exists methods in blog page workshop (#59858)
This commit is contained in:
+3
-3
@@ -35,13 +35,13 @@ Your `figure` element should be within your `header` element.
|
||||
|
||||
```js
|
||||
const figureElement = document.querySelector('figure');
|
||||
assert(figureElement?.parentElement.tagName === 'HEADER');
|
||||
assert.equal(figureElement?.parentElement.tagName, 'HEADER');
|
||||
```
|
||||
|
||||
You should have an `img` element.
|
||||
You should have an `img` element.
|
||||
|
||||
```js
|
||||
assert(document.querySelector("img"));
|
||||
assert.exists(document.querySelector("img"));
|
||||
```
|
||||
|
||||
Your `img` element should be within your `figure` element.
|
||||
|
||||
Reference in New Issue
Block a user