mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-13 16:04:36 -04:00
fix(curriculum): update anchor tag test to test only those li elements (#58824)
This commit is contained in:
@@ -157,7 +157,7 @@ assert.lengthOf(document.querySelectorAll('p + ul li'), 2);
|
||||
Both your list items should contain an anchor element.
|
||||
|
||||
```js
|
||||
const listItems = document.querySelectorAll('li');
|
||||
const listItems = document.querySelectorAll('p + ul li');
|
||||
assert.isNotEmpty(listItems);
|
||||
for (let e of listItems) {
|
||||
assert.strictEqual(e.children[0].tagName, 'A');
|
||||
|
||||
Reference in New Issue
Block a user