chore(paco): Hide the frontPocketFlapSize option
This commit is contained in:
parent
20c0419f35
commit
3da7cd5aee
2 changed files with 17 additions and 4 deletions
|
@ -105,7 +105,14 @@ export default {
|
||||||
frontPockets: { bool: true },
|
frontPockets: { bool: true },
|
||||||
backPockets: { bool: false },
|
backPockets: { bool: false },
|
||||||
// Not exposed to the user
|
// Not exposed to the user
|
||||||
frontPocketFlapSize: { pct: 3, min: 3, max: 3, snap: smallsteps, ...pctBasedOn('waist') },
|
frontPocketFlapSize: {
|
||||||
|
pct: 3,
|
||||||
|
min: 3,
|
||||||
|
max: 3,
|
||||||
|
snap: smallsteps,
|
||||||
|
...pctBasedOn('waist'),
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
|
|
||||||
// Advanced
|
// Advanced
|
||||||
legBalance: { pct: 57.5, min: 52.5, max: 62.5 },
|
legBalance: { pct: 57.5, min: 52.5, max: 62.5 },
|
||||||
|
|
|
@ -124,9 +124,15 @@ export const testPatternConfig = (design, pattern, expect, models, patterns) =>
|
||||||
if (type === 'object' && typeof option.pct !== 'undefined') {
|
if (type === 'object' && typeof option.pct !== 'undefined') {
|
||||||
// Percentage option
|
// Percentage option
|
||||||
it(` - '${name}' is a percentage option`, () => true)
|
it(` - '${name}' is a percentage option`, () => true)
|
||||||
it(` - Should be exposed in an option group`, () => {
|
// Snapped options can just be hidden instead
|
||||||
expect(allOptiongroupOptions.indexOf(name) !== -1).to.be.true
|
if (option.hidden) {
|
||||||
})
|
if (option.snap) it(` - '${name}' is a hidden snap option`, () => true)
|
||||||
|
else {
|
||||||
|
it(` - Should be exposed in an option group`, () => {
|
||||||
|
expect(allOptiongroupOptions.indexOf(name) !== -1).to.be.true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
it(` - Should have a default value`, () => {
|
it(` - Should have a default value`, () => {
|
||||||
expect(typeof option.pct).to.equal('number')
|
expect(typeof option.pct).to.equal('number')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue