1
0
Fork 0

feat: Added i18n tests for designs

This commit is contained in:
joostdecock 2023-07-02 11:48:42 +02:00
parent 11919eb532
commit 738a21d1d5
55 changed files with 519 additions and 231 deletions

View file

@ -1,14 +1,18 @@
// This file is auto-generated | Any changes you make will be overwritten.
import { Albert } from '../src/index.mjs'
import { Albert, i18n } from '../src/index.mjs'
// Shared tests
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'
// Test config
testPatternConfig(Albert)
// Test translation
testPatternI18n(Albert, i18n)
// Test drafting - Change the second parameter to `true` to log errors
testPatternDrafting(Albert, false)