mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
linting
This commit is contained in:
parent
2a49495959
commit
e14a909ebf
1 changed files with 2 additions and 2 deletions
|
@ -24,11 +24,11 @@ const createValidateRealtimeDataUpdatedAt = (cfg) => {
|
||||||
const createValidateProducts = (cfg) => {
|
const createValidateProducts = (cfg) => {
|
||||||
const validateProducts = (val, p, name = 'products') => {
|
const validateProducts = (val, p, name = 'products') => {
|
||||||
return; // TODO
|
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) {
|
for (let product of cfg.products) {
|
||||||
const msg = `${name}[${product.id}] must be a boolean`;
|
const msg = `${name}[${product.id}] must be a boolean`;
|
||||||
a.strictEqual(typeof p[product.id], 'boolean', msg);
|
a.strictEqual(typeof p[product.id], 'boolean', msg);
|
||||||
}
|
}*/
|
||||||
};
|
};
|
||||||
return validateProducts;
|
return validateProducts;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue