mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix(curriculum): add .trim() to textContent assertions (#62608)
This commit is contained in:
parent
a9fab95361
commit
ea3e22f1af
@ -23,7 +23,7 @@ assert.exists(document.querySelector('h1'))
|
||||
Your `h1` element should have the text `iframe Video Display`.
|
||||
|
||||
```js
|
||||
assert.equal(document.querySelector('h1')?.textContent, 'iframe Video Display')
|
||||
assert.equal(document.querySelector('h1')?.textContent.trim(), 'iframe Video Display')
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user