list optimization
All checks were successful
Deploy Sokko G / deploy (push) Successful in 7s

This commit is contained in:
Shinuwa 2026-07-24 17:29:08 +02:00
parent 8b9171d4f9
commit ef5f977f8a
15 changed files with 3571 additions and 272 deletions

View file

@ -54,7 +54,9 @@ test("mhwilds data and assets are available", async () => {
items.forEach((item, index) => {
assert.equal(typeof item.nom, "string", `${list.file}.${category}[${index}].nom must be a string`);
assert.ok(item.nom.trim(), `${list.file}.${category}[${index}].nom must not be empty`);
assert.equal(typeof item.description, "string", `${list.file}.${category}[${index}].description must be a string`);
if (item.description !== undefined) {
assert.equal(typeof item.description, "string", `${list.file}.${category}[${index}].description must be a string`);
}
if (item.quantite !== undefined) {
assert.ok(Number.isFinite(Number(item.quantite)), `${list.file}.${category}[${index}].quantite must be numeric`);
}