1
0
Fork 0

fix(models): Fixed issues with some measurements being NaN

This commit is contained in:
Joost De Cock 2022-08-29 13:28:46 +02:00
parent 364e43b635
commit 1c5262222f
4 changed files with 39 additions and 21 deletions

View file

@ -13,14 +13,15 @@ describe('Measurements', () => {
})
for (const type in sizes) {
describe(`Sizes: ${type}`, () => {
for (const size of sizes[type]) {
it(`${type}${size} should have all measurements`, () => {
for (const m of measurements) {
expect(typeof all[`${type}${size}`][m]).to.equal('number');
}
})
}
})
for (const size of sizes[type]) {
describe(`${type} size ${size}`, () => {
for (const m of measurements) {
it(`${type}${size} should have the ${m} measurement`, () => {
expect(typeof all[`${type}${size}`][m]).to.equal('number')
expect(isNaN(all[`${type}${size}`][m])).to.equal(false)
})
}
})
}
}