1
0
Fork 0

chore(bee): Ported to v3

This commit is contained in:
Joost De Cock 2022-08-28 17:58:12 +02:00
parent 07175a7d00
commit 1bcdce2223
12 changed files with 820 additions and 922 deletions

View file

@ -1,17 +1,16 @@
// This file is auto-generated.
// Changes you make will be overwritten.
import Pattern from './dist/index.mjs'
// This file is auto-generated | Any changes you make will be overwritten.
import { Bee } 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'
import { testPatternConfig } from '../../../tests/designs/config.mjs'
import { testPatternDrafting } from '../../../tests/designs/drafting.mjs'
import { testPatternSampling } from '../../../tests/designs/sampling.mjs'
// Test config
testPatternConfig("bee", new Pattern())
testPatternConfig(Bee)
// Test drafting
testPatternDrafting("bee", Pattern)
// Test drafting - Change the second parameter to `true` to log errors
testPatternDrafting(Bee, true)
// Test sampling
testPatternSampling( "bee", Pattern)
// Test sampling - Change the second parameter to `true` to log errors
testPatternSampling(Bee, false)