chore(bella): Updated unit tests. See #408
This commit is contained in:
parent
56db910c4e
commit
c4fac82f19
2 changed files with 43 additions and 3 deletions
41
packages/bella/tests/shared.test.mjs
Normal file
41
packages/bella/tests/shared.test.mjs
Normal file
|
@ -0,0 +1,41 @@
|
|||
// 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 Bella from '../dist/index.mjs'
|
||||
|
||||
// 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(
|
||||
'bella',
|
||||
new Bella(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
'bella',
|
||||
Bella,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
'bella',
|
||||
Bella,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue