2021-11-27 16:47:39 +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-06-14 23:13:59 +02:00
|
|
|
import Aaron from './dist/index.mjs'
|
2021-11-27 16:47:39 +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(
|
|
|
|
'aaron',
|
|
|
|
new Aaron(),
|
|
|
|
expect,
|
|
|
|
models,
|
|
|
|
patterns
|
|
|
|
)
|
|
|
|
|
|
|
|
// Test drafting
|
|
|
|
testPatternDrafting(
|
|
|
|
'aaron',
|
|
|
|
Aaron,
|
|
|
|
expect,
|
|
|
|
models,
|
|
|
|
patterns
|
|
|
|
)
|
|
|
|
|
|
|
|
// Test sampling
|
|
|
|
testPatternSampling(
|
|
|
|
'aaron',
|
|
|
|
Aaron,
|
|
|
|
expect,
|
|
|
|
models,
|
|
|
|
patterns
|
|
|
|
)
|