1
0
Fork 0
freesewing/packages/paco/tests/shared.test.js
joostdecock 545b5bae8b fix(paco): Support drafting for non-human sizes
fixes #1316

This was due to the fact that we use `mm` options in this pattern.
Which goes to show that we really should crack down on using mm
options if we want to support size ranges that go beyond humans.
2021-09-11 16:43:12 +02:00

40 lines
753 B
JavaScript

// This file is auto-generated.
// Changes you make will be overwritten.
const expect = require("chai").expect;
const models = require("@freesewing/models")
const patterns = require("@freesewing/pattern-info")
const Paco = require('../dist')
// Shared tests
const testPatternConfig = require('../../../tests/patterns/config')
const testPatternDrafting = require('../../../tests/patterns/drafting')
const testPatternSampling = require('../../../tests/patterns/sampling')
// Test config
testPatternConfig(
'paco',
new Paco(),
expect,
models,
patterns
)
// Test drafting
testPatternDrafting(
'paco',
Paco,
expect,
models,
patterns,
true
)
// Test sampling
testPatternSampling(
'paco',
Paco,
expect,
models,
patterns
)