mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-05 21:04:28 +08:00
fix(curriculum): add assert to prevent empty editor pass in todo list (#64193)
This commit is contained in:
parent
4b6c2d7805
commit
b51290d009
@ -100,6 +100,7 @@ The `id` and `for` attributes of the `input` and `label` elements pairs, should
|
||||
|
||||
```js
|
||||
const labels = document.querySelectorAll("label");
|
||||
assert.isNotEmpty(labels);
|
||||
|
||||
document.querySelectorAll("input").forEach((input, index) => {
|
||||
assert.equal(input.id, labels[index].htmlFor);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user