mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
fix(curriculum): use assert equal and exists methods in blog page workshop (#59858)
This commit is contained in:
parent
330221ccc1
commit
819de54d0d
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user