Skip to content

Commit

Permalink
fix(curriculum): Use innerText for anchor text test (#53081)
Browse files Browse the repository at this point in the history
  • Loading branch information
lasjorg committed Jan 10, 2024
1 parent d3ed959 commit 8591d46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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--
Expand Down

0 comments on commit 8591d46

Please sign in to comment.