mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-16 16:00:45 -04:00
fix(curriculum): add assert to prevent empty editor pass in todo list (#64193)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user