mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
nah.sh tests: fix products validation 🐛
This commit is contained in:
parent
57f3cdb7e0
commit
634b044bc5
1 changed files with 3 additions and 4 deletions
|
@ -58,10 +58,9 @@ const assertIsKielHbf = (t, s) => {
|
|||
|
||||
// todo: DRY with assertValidStationProducts
|
||||
// todo: DRY with other tests
|
||||
const assertValidProducts = (t, p) => {
|
||||
for (let product of allProducts) {
|
||||
product = product.product // wat
|
||||
t.equal(typeof p[product], 'boolean', 'product ' + p + ' must be a boolean')
|
||||
const assertValidProducts = (t, products) => {
|
||||
for (let p of allProducts) {
|
||||
t.equal(typeof products[p.id], 'boolean', `product ${p.id} must be a boolean`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue