1
0
Fork 0

fix(tests): Updated for new departments

This commit is contained in:
Joost De Cock 2021-05-31 19:23:48 +02:00
parent 74b61d1a93
commit 635e44fc45

View file

@ -33,9 +33,9 @@ const testPatternConfig = (design, pattern, expect, models, patterns) => {
it(` - 'type' should be 'pattern' or 'block'`, () => {
expect(['pattern', 'block'].indexOf(pattern.config.type)).to.not.equal(-1)
})
it(` - 'department' should be one of menswear, womenswear, unisex, or accessories`, () => {
it(` - 'department' should be one of tops, bottoms, coats, swimwear, underwear, or accessories`, () => {
expect(
['menswear', 'womenswear', 'unisex', 'accessories'].indexOf(pattern.config.department)
['tops', 'bottoms', 'coats', 'swimwear', 'underwear', 'accessories'].indexOf(pattern.config.department)
).to.not.equal(-1)
})
it(` - 'difficulty' should be a number between 1 and 5`, () => {