fix(curriculum): Use innerText for anchor text test (#53081)

This commit is contained in:
Lasse Jørgensen 2024-01-10 09:05:22 +01:00 committed by GitHub
parent d3ed959319
commit 8591d46443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ assert(document.querySelector('div')?.querySelector('p')?.firstElementChild?.get
Your `a` element should surround the text `freeCodeCamp`.
```js
assert(document.querySelector('div')?.querySelector('p')?.firstElementChild?.textContent === 'freeCodeCamp');
assert(document.querySelector('div')?.querySelector('p')?.firstElementChild?.innerText === 'freeCodeCamp');
```
# --seed--