fix(curriculum): add assert to prevent empty editor pass in todo list (#64193)

This commit is contained in:
Vincent-Stone
2025-11-27 21:30:16 +08:00
committed by GitHub
parent 4b6c2d7805
commit b51290d009

View File

@@ -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);