2021-11-27 16:48:08 +01:00
|
|
|
// This file is auto-generated.
|
|
|
|
// Changes you make will be overwritten.
|
|
|
|
import chai from 'chai'
|
|
|
|
import models from '@freesewing/models'
|
|
|
|
import patterns from '@freesewing/pattern-info'
|
2022-07-31 16:13:51 +02:00
|
|
|
import Pattern from './dist/index.mjs'
|
2021-11-27 16:48:08 +01:00
|
|
|
|
|
|
|
// Shared tests
|
|
|
|
import { testPatternConfig } from '../../../tests/patterns/config.mjs'
|
|
|
|
import { testPatternDrafting } from '../../../tests/patterns/drafting.mjs'
|
|
|
|
import { testPatternSampling } from '../../../tests/patterns/sampling.mjs'
|
|
|
|
|
|
|
|
const expect = chai.expect
|
|
|
|
|
|
|
|
// Test config
|
|
|
|
testPatternConfig(
|
2022-07-31 16:13:51 +02:00
|
|
|
"benjamin",
|
|
|
|
new Pattern(),
|
2021-11-27 16:48:08 +01:00
|
|
|
expect,
|
|
|
|
models,
|
|
|
|
patterns
|
|
|
|
)
|
|
|
|
|
|
|
|
// Test drafting
|
|
|
|
testPatternDrafting(
|
2022-07-31 16:13:51 +02:00
|
|
|
"benjamin",
|
|
|
|
Pattern,
|
2021-11-27 16:48:08 +01:00
|
|
|
expect,
|
|
|
|
models,
|
|
|
|
patterns
|
|
|
|
)
|
|
|
|
|
|
|
|
// Test sampling
|
|
|
|
testPatternSampling(
|
2022-07-31 16:13:51 +02:00
|
|
|
"benjamin",
|
|
|
|
Pattern,
|
2021-11-27 16:48:08 +01:00
|
|
|
expect,
|
|
|
|
models,
|
|
|
|
patterns
|
|
|
|
)
|