This commit is contained in:
parent
8b9171d4f9
commit
ef5f977f8a
15 changed files with 3571 additions and 272 deletions
|
|
@ -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`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue