mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-28 21:00:56 +08:00
fix(curriculum): fix the tests that should pass when code is correct (#65328)
This commit is contained in:
parent
6668692afb
commit
24190b95ae
@ -36,14 +36,13 @@ assert.equal(textInput.id, 'text-input');
|
||||
You should have a `p` element with the `id` of `char-count`.
|
||||
|
||||
```js
|
||||
const charCount = document.querySelector('p');
|
||||
assert.equal(charCount.id, 'char-count');
|
||||
assert.exists("p#char-count");
|
||||
```
|
||||
|
||||
The `#char-count` element should initially contain the text `Character Count: 0/50`.
|
||||
|
||||
```js
|
||||
const charCount = document.querySelector('p')?.innerText;
|
||||
const charCount = document.querySelector('p#char-count')?.innerText;
|
||||
assert.equal(charCount, 'Character Count: 0/50');
|
||||
```
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user