1
0
Fork 0

chore(models): Ported to v3

This commit is contained in:
Joost De Cock 2022-08-28 19:51:15 +02:00
parent 1bcdce2223
commit 1de3e428c1
16 changed files with 282 additions and 359 deletions

View file

@ -0,0 +1,26 @@
import chai from "chai"
import * as all from "./dist/index.mjs"
const expect = chai.expect
const { measurements, sizes } = all
describe('Measurements', () => {
it("Measurements should be a named export and match the sizes", () => {
for (const m of measurements) {
expect(typeof all.womenswear28[m]).to.equal('number');
}
})
})
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');
}
})
}
})
}