chore: Ported pattern tests to ESM
This commit is contained in:
parent
89f1132d57
commit
d74d900a76
59 changed files with 445 additions and 6907 deletions
|
@ -18,9 +18,9 @@ _types:
|
|||
testci: *testci
|
||||
core:
|
||||
report: 'nyc report --reporter=html'
|
||||
test: 'nyc -x node_modules -x tests -x bin-pack npx mocha tests/*.test.js'
|
||||
testci: "nyc --silent npx mocha tests/*.test.js --reporter ../../tests/reporters/terse.js && nyc report --reporter=json"
|
||||
testonly: 'npx mocha tests/*.test.js'
|
||||
test: 'nyc -x node_modules -x tests -x bin-pack npx mocha tests/*.test.mjs'
|
||||
testci: "nyc --silent npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js && nyc report --reporter=json"
|
||||
testonly: 'npx mocha tests/*.test.mjs'
|
||||
i18n:
|
||||
prebuild: 'node scripts/prebuilder.mjs'
|
||||
test: *test
|
||||
|
|
|
@ -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(
|
||||
"{{name}}",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("{{name}}", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"{{name}}",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("{{name}}", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"{{name}}",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "{{name}}", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"aaron",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("aaron", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"aaron",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("aaron", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"aaron",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "aaron", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"albert",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("albert", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"albert",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("albert", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"albert",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "albert", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"bee",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("bee", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"bee",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("bee", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"bee",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "bee", Pattern)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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(
|
||||
"benjamin",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("benjamin", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"benjamin",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("benjamin", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"benjamin",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "benjamin", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"bent",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("bent", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"bent",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("bent", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"bent",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "bent", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"bob",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("bob", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"bob",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("bob", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"bob",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "bob", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"breanna",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("breanna", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"breanna",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("breanna", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"breanna",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "breanna", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"brian",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("brian", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"brian",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("brian", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"brian",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "brian", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"bruce",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("bruce", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"bruce",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("bruce", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"bruce",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "bruce", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"carlita",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("carlita", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"carlita",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("carlita", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"carlita",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "carlita", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"carlton",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("carlton", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"carlton",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("carlton", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"carlton",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "carlton", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"cathrin",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("cathrin", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"cathrin",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("cathrin", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"cathrin",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "cathrin", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"charlie",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("charlie", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"charlie",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("charlie", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"charlie",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "charlie", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"cornelius",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("cornelius", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"cornelius",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("cornelius", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"cornelius",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "cornelius", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"diana",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("diana", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"diana",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("diana", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"diana",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "diana", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"examples",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("examples", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"examples",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("examples", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"examples",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "examples", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"florence",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("florence", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"florence",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("florence", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"florence",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "florence", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"florent",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("florent", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"florent",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("florent", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"florent",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "florent", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"hi",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("hi", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"hi",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("hi", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"hi",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "hi", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"holmes",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("holmes", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"holmes",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("holmes", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"holmes",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "holmes", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"hortensia",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("hortensia", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"hortensia",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("hortensia", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"hortensia",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "hortensia", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"huey",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("huey", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"huey",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("huey", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"huey",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "huey", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"hugo",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("hugo", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"hugo",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("hugo", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"hugo",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "hugo", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"jaeger",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("jaeger", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"jaeger",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("jaeger", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"jaeger",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "jaeger", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"legend",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("legend", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"legend",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("legend", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"legend",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "legend", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"lucy",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("lucy", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"lucy",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("lucy", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"lucy",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "lucy", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"lunetius",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("lunetius", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"lunetius",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("lunetius", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"lunetius",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "lunetius", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"noble",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("noble", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"noble",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("noble", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"noble",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "noble", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"octoplushy",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("octoplushy", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"octoplushy",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("octoplushy", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"octoplushy",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "octoplushy", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"paco",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("paco", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"paco",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("paco", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"paco",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "paco", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"penelope",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("penelope", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"penelope",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("penelope", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"penelope",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "penelope", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"plugintest",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("plugintest", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"plugintest",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("plugintest", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"plugintest",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "plugintest", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"rendertest",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("rendertest", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"rendertest",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("rendertest", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"rendertest",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "rendertest", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"sandy",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("sandy", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"sandy",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("sandy", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"sandy",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "sandy", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"shin",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("shin", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"shin",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("shin", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"shin",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "shin", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"simon",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("simon", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"simon",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("simon", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"simon",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "simon", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"simone",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("simone", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"simone",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("simone", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"simone",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "simone", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"sven",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("sven", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"sven",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("sven", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"sven",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "sven", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"tamiko",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("tamiko", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"tamiko",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("tamiko", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"tamiko",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "tamiko", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"teagan",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("teagan", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"teagan",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("teagan", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"teagan",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "teagan", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"theo",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("theo", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"theo",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("theo", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"theo",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "theo", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"tiberius",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("tiberius", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"tiberius",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("tiberius", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"tiberius",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "tiberius", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"titan",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("titan", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"titan",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("titan", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"titan",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "titan", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"trayvon",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("trayvon", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"trayvon",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("trayvon", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"trayvon",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "trayvon", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"tutorial",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("tutorial", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"tutorial",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("tutorial", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"tutorial",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "tutorial", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"unice",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("unice", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"unice",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("unice", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"unice",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "unice", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"ursula",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("ursula", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"ursula",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("ursula", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"ursula",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "ursula", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"wahid",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("wahid", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"wahid",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("wahid", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"wahid",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "wahid", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"walburga",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("walburga", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"walburga",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("walburga", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"walburga",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "walburga", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"waralee",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("waralee", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"waralee",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("waralee", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"waralee",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "waralee", Pattern)
|
||||
|
|
|
@ -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(
|
||||
"yuri",
|
||||
new Pattern(),
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternConfig("yuri", new Pattern())
|
||||
|
||||
// Test drafting
|
||||
testPatternDrafting(
|
||||
"yuri",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternDrafting("yuri", Pattern)
|
||||
|
||||
// Test sampling
|
||||
testPatternSampling(
|
||||
"yuri",
|
||||
Pattern,
|
||||
expect,
|
||||
models,
|
||||
patterns
|
||||
)
|
||||
testPatternSampling( "yuri", Pattern)
|
||||
|
|
|
@ -35,13 +35,13 @@
|
|||
"clean": "rimraf dist",
|
||||
"mbuild": "NO_MINIFY=1 node --experimental-json-modules build.mjs",
|
||||
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",
|
||||
"test": "nyc -x node_modules -x tests -x bin-pack npx mocha tests/*.test.js",
|
||||
"test": "nyc -x node_modules -x tests -x bin-pack npx mocha tests/*.test.mjs",
|
||||
"vbuild": "VERBOSE=1 node --experimental-json-modules build.mjs",
|
||||
"lab": "cd ../../sites/lab && yarn start",
|
||||
"tips": "node ../../scripts/help.mjs",
|
||||
"report": "nyc report --reporter=html",
|
||||
"testci": "nyc --silent npx mocha tests/*.test.js --reporter ../../tests/reporters/terse.js && nyc report --reporter=json",
|
||||
"testonly": "npx mocha tests/*.test.js",
|
||||
"testci": "nyc --silent npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js && nyc report --reporter=json",
|
||||
"testonly": "npx mocha tests/*.test.mjs",
|
||||
"cibuild_step0": "node --experimental-json-modules build.mjs"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
import { measurements } from '@freesewing/models'
|
||||
import chai from 'chai'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
const notGarments = [
|
||||
'rendertest',
|
||||
'tutorial',
|
||||
|
@ -16,12 +21,8 @@ const deprecated = ['theo']
|
|||
*
|
||||
* @param string me: Name of the pattern (eg 'aaron')
|
||||
* @param object Pattern: Instantiated pattern object
|
||||
*
|
||||
* @param object expect: Imported chai.expect
|
||||
* @param object models: Imported @freesewing/models
|
||||
* @param object patterns: Imported @freesewing/pattern-info
|
||||
*/
|
||||
export const testPatternConfig = (design, pattern, expect, models, patterns) => {
|
||||
export const testPatternConfig = (design, pattern) => {
|
||||
const allOptiongroupOptions = []
|
||||
it('Metadata:', () => true)
|
||||
it(` - 'name' should match package name`, () => {
|
||||
|
@ -94,30 +95,17 @@ export const testPatternConfig = (design, pattern, expect, models, patterns) =>
|
|||
expect(pattern.config.difficulty < 6).to.be.true
|
||||
})
|
||||
|
||||
/*
|
||||
* Ensure pattern is listed as being for breasts or not
|
||||
*/
|
||||
let breasts = false
|
||||
it('Pattern should be listed as with or without breasts', () => {
|
||||
let result = false
|
||||
if (patterns.withBreasts.indexOf(design) !== -1) {
|
||||
breasts = true
|
||||
result = true
|
||||
} else {
|
||||
if (patterns.withoutBreasts.indexOf(design) !== -1) result = true
|
||||
}
|
||||
expect(result).to.be.true
|
||||
})
|
||||
|
||||
/*
|
||||
* Ensure required measurements are known measurements
|
||||
*/
|
||||
it('Required measurements:', () => true)
|
||||
for (let measurement of pattern.config.measurements || []) {
|
||||
it(` - '${measurement}' should be a known measurement`, () => {
|
||||
expect(
|
||||
models.measurements[breasts ? 'womenswear' : 'menswear'].indexOf(measurement)
|
||||
).to.not.equal(-1)
|
||||
if (measurements.menswear.indexOf(measurement) !== -1) {
|
||||
expect(measurements.menswear.indexOf(measurement)).to.not.equal(-1)
|
||||
} else {
|
||||
expect(measurements.womenswear.indexOf(measurement)).to.not.equal(-1)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
import { nonHumanMeasurements } from './non-human-measurements.mjs'
|
||||
import { measurements, withBreasts, withoutBreasts } from '@freesewing/models'
|
||||
import chai from 'chai'
|
||||
|
||||
const expect = chai.expect
|
||||
const models = { withBreasts, withoutBreasts }
|
||||
|
||||
// Some patterns are different
|
||||
const isGarment = design => ([
|
||||
|
@ -18,12 +23,9 @@ const deprecated = ['theo']
|
|||
*
|
||||
* @param string me: Name of the pattern (eg 'aaron')
|
||||
* @param object Pattern: pattern constructor
|
||||
*
|
||||
* @param object expect: Imported chai.expect
|
||||
* @param object models: Imported @freesewing/models
|
||||
* @param object patterns: Imported @freesewing/pattern-info
|
||||
* @param boolean log: Set to true to log errors
|
||||
*/
|
||||
export const testPatternDrafting = (design, Pattern, expect, models, patterns, log=false) => {
|
||||
export const testPatternDrafting = (design, Pattern, log=false) => {
|
||||
// Load non-human measurements
|
||||
const nonHuman = nonHumanMeasurements(models)
|
||||
|
||||
|
@ -40,11 +42,10 @@ export const testPatternDrafting = (design, Pattern, expect, models, patterns, l
|
|||
}
|
||||
}
|
||||
|
||||
// Figure out whether this is a with(out)breasts pattern
|
||||
const breasts = patterns.withBreasts.indexOf(design) === -1 ? false : true
|
||||
|
||||
const ourModels = models[breasts ? 'withBreasts' : 'withoutBreasts']
|
||||
const measurements = ourModels[breasts ? 'size34' : 'size42']
|
||||
// FIXME: Just use womenswear measurements, as they should always work
|
||||
const breasts = true
|
||||
const ourModels = withBreasts
|
||||
//const measies = measurements.womenswear.size34
|
||||
|
||||
/*
|
||||
* Draft pattern for different models
|
||||
|
@ -101,15 +102,13 @@ export const testPatternDrafting = (design, Pattern, expect, models, patterns, l
|
|||
* Draft parts individually
|
||||
*/
|
||||
it('Draft parts individually:', () => true)
|
||||
let parts = isGarment(design)
|
||||
? patterns.parts[design]
|
||||
: Pattern.config.parts
|
||||
for (let name of parts) {
|
||||
const parts = Pattern.config.parts || []
|
||||
for (const name of parts) {
|
||||
it(` - ${name} should draft and render on its own`, () => {
|
||||
expect(
|
||||
doesItDraftAndRender(
|
||||
new Pattern({
|
||||
measurements,
|
||||
measurements: ourModels.size34,
|
||||
only: [name]
|
||||
}), log
|
||||
)
|
||||
|
|
|
@ -1,20 +1,22 @@
|
|||
import { nonHumanMeasurements } from './non-human-measurements.mjs'
|
||||
import { measurements, withBreasts, withoutBreasts } from '@freesewing/models'
|
||||
import chai from 'chai'
|
||||
|
||||
const expect = chai.expect
|
||||
const models = {withBreasts, withoutBreasts}
|
||||
/*
|
||||
* This runs unit tests for pattern sampling
|
||||
* It expects the following:
|
||||
*
|
||||
* @param string me: Name of the pattern (eg 'aaron')
|
||||
* @param object Pattern: pattern constructor
|
||||
*
|
||||
* @param object expect: Imported chai.expect
|
||||
* @param object models: Imported @freesewing/models
|
||||
* @param object patterns: Imported @freesewing/pattern-info
|
||||
* @param boolean log: Set to true to log errors
|
||||
*/
|
||||
|
||||
// Some patterns are deprecated and won't support more stringent doll/giant tests
|
||||
const deprecated = ['theo']
|
||||
|
||||
export const testPatternSampling = (design, Pattern, expect, models, patterns, log=false) => {
|
||||
export const testPatternSampling = (design, Pattern, log=false) => {
|
||||
// Load non-human measurements
|
||||
const nonHuman = nonHumanMeasurements(models)
|
||||
|
||||
|
@ -32,8 +34,8 @@ export const testPatternSampling = (design, Pattern, expect, models, patterns, l
|
|||
}
|
||||
}
|
||||
|
||||
// Figure out whether this is a with(out)breasts pattern
|
||||
const breasts = (patterns.withBreasts.indexOf(design) === -1) ? false : true
|
||||
// FIXME: Always use breasts for now
|
||||
const breasts = true
|
||||
|
||||
const ourModels = models
|
||||
[breasts ? 'withBreasts' : 'withoutBreasts']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue