1
0
Fork 0
freesewing/designs/otis/tests/shared.test.mjs

21 lines
721 B
JavaScript
Raw Normal View History

2023-10-14 13:13:13 +02:00
// This file is auto-generated | Any changes you make will be overwritten.
import { Otis, i18n } from '../src/index.mjs'
2023-10-05 22:59:36 +00:00
// Shared tests
2023-10-14 13:13:13 +02:00
import { testPatternConfig } from '../../../tests/designs/config.mjs'
import { testPatternI18n } from '../../../tests/designs/i18n.mjs'
import { testPatternDrafting } from '../../../tests/designs/drafting.mjs'
import { testPatternSampling } from '../../../tests/designs/sampling.mjs'
2023-10-05 22:59:36 +00:00
// Test config
2023-10-14 13:13:13 +02:00
testPatternConfig(Otis)
// Test translation
testPatternI18n(Otis, i18n)
2023-10-05 22:59:36 +00:00
2023-10-14 13:13:13 +02:00
// Test drafting - Change the second parameter to `true` to log errors
testPatternDrafting(Otis, false)
2023-10-05 22:59:36 +00:00
2023-10-14 13:13:13 +02:00
// Test sampling - Change the second parameter to `true` to log errors
testPatternSampling(Otis, false)