fix(curriculum): use assert equal and exists methods in blog page workshop (#59858)

This commit is contained in:
Clarence 2025-04-22 01:33:04 +01:00 committed by GitHub
parent 330221ccc1
commit 819de54d0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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