chore: Ported pattern tests to ESM
This commit is contained in:
parent
89f1132d57
commit
d74d900a76
59 changed files with 445 additions and 6907 deletions
|
@ -1,8 +1,5 @@
|
|||
// 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'
|
||||
import Pattern from './dist/index.mjs'
|
||||
|
||||
// Shared tests
|
||||
|
@ -10,31 +7,11 @@ 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(
|
||||
"bella",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("bella", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"bella",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("bella", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"bella",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "bella", Pattern)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue