chore: Added more unittests for patterns
This commit is contained in:
parent
13c4cbd779
commit
926e921582
39 changed files with 818 additions and 6 deletions
|
@ -5,7 +5,11 @@ const models = require("@freesewing/models")
|
|||
const patterns = require("@freesewing/pattern-info")
|
||||
|
||||
const Tutorial = 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(
|
||||
|
@ -15,3 +19,21 @@ testPatternConfig(
|
|||
models,
|
||||
patterns
|
||||
)
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
'tutorial',
|
||||
Tutorial,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
'tutorial',
|
||||
Tutorial,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue