This commit is contained in:
Traines 2024-12-18 00:40:37 +00:00
parent 2a49495959
commit e14a909ebf

View file

@ -24,11 +24,11 @@ const createValidateRealtimeDataUpdatedAt = (cfg) => {
const createValidateProducts = (cfg) => {
const validateProducts = (val, p, name = 'products') => {
return; // TODO
a.ok(isObj(p), name + ' must be an object');
/*a.ok(isObj(p), name + ' must be an object');
for (let product of cfg.products) {
const msg = `${name}[${product.id}] must be a boolean`;
a.strictEqual(typeof p[product.id], 'boolean', msg);
}
}*/
};
return validateProducts;
};