feat: Added i18n tests for designs
This commit is contained in:
parent
11919eb532
commit
738a21d1d5
55 changed files with 519 additions and 231 deletions
|
@ -4,16 +4,20 @@
|
|||
// Dollar signs are allowed in EcmaScript identifier names,
|
||||
// which is helpful when running unrendered Mustache templates through eslint.
|
||||
//}}{{=$$ $$=}}
|
||||
import { $$Name$$ } from '../src/index.mjs'
|
||||
import { $$Name$$, 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($$Name$$)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n($$Name$$, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting($$Name$$, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Aaron } from '../src/index.mjs'
|
||||
import { Aaron, 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(Aaron)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Aaron, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Aaron, false)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Bee } from '../src/index.mjs'
|
||||
import { Bee, 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(Bee)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Bee, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Bee, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Bella } from '../src/index.mjs'
|
||||
import { Bella, 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(Bella)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Bella, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Bella, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Benjamin } from '../src/index.mjs'
|
||||
import { Benjamin, 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(Benjamin)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Benjamin, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Benjamin, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Bent } from '../src/index.mjs'
|
||||
import { Bent, 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(Bent)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Bent, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Bent, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Bob } from '../src/index.mjs'
|
||||
import { Bob, 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(Bob)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Bob, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Bob, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Breanna } from '../src/index.mjs'
|
||||
import { Breanna, 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(Breanna)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Breanna, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Breanna, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Brian } from '../src/index.mjs'
|
||||
import { Brian, 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(Brian)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Brian, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Brian, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Bruce } from '../src/index.mjs'
|
||||
import { Bruce, 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(Bruce)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Bruce, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Bruce, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Carlita } from '../src/index.mjs'
|
||||
import { Carlita, 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(Carlita)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Carlita, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Carlita, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Carlton } from '../src/index.mjs'
|
||||
import { Carlton, 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(Carlton)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Carlton, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Carlton, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Cathrin } from '../src/index.mjs'
|
||||
import { Cathrin, 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(Cathrin)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Cathrin, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Cathrin, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Charlie } from '../src/index.mjs'
|
||||
import { Charlie, 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(Charlie)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Charlie, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Charlie, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Cornelius } from '../src/index.mjs'
|
||||
import { Cornelius, 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(Cornelius)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Cornelius, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Cornelius, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Diana } from '../src/index.mjs'
|
||||
import { Diana, 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(Diana)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Diana, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Diana, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Examples } from '../src/index.mjs'
|
||||
import { Examples, 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(Examples)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Examples, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Examples, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Florence } from '../src/index.mjs'
|
||||
import { Florence, 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(Florence)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Florence, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Florence, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Florent } from '../src/index.mjs'
|
||||
import { Florent, 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(Florent)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Florent, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Florent, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Hi } from '../src/index.mjs'
|
||||
import { Hi, 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(Hi)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Hi, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Hi, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Holmes } from '../src/index.mjs'
|
||||
import { Holmes, 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(Holmes)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Holmes, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Holmes, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Hortensia } from '../src/index.mjs'
|
||||
import { Hortensia, 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(Hortensia)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Hortensia, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Hortensia, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Huey } from '../src/index.mjs'
|
||||
import { Huey, 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(Huey)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Huey, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Huey, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Hugo } from '../src/index.mjs'
|
||||
import { Hugo, 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(Hugo)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Hugo, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Hugo, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Jaeger } from '../src/index.mjs'
|
||||
import { Jaeger, 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(Jaeger)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Jaeger, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Jaeger, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Legend } from '../src/index.mjs'
|
||||
import { Legend, 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(Legend)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Legend, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Legend, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Lucy } from '../src/index.mjs'
|
||||
import { Lucy, 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(Lucy)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Lucy, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Lucy, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Lunetius } from '../src/index.mjs'
|
||||
import { Lunetius, 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(Lunetius)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Lunetius, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Lunetius, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Magde } from '../src/index.mjs'
|
||||
import { Magde, 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(Magde)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Magde, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Magde, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Noble } from '../src/index.mjs'
|
||||
import { Noble, 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(Noble)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Noble, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Noble, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Octoplushy } from '../src/index.mjs'
|
||||
import { Octoplushy, 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(Octoplushy)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Octoplushy, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Octoplushy, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Paco } from '../src/index.mjs'
|
||||
import { Paco, 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(Paco)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Paco, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Paco, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Penelope } from '../src/index.mjs'
|
||||
import { Penelope, 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(Penelope)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Penelope, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Penelope, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Plugintest } from '../src/index.mjs'
|
||||
import { Plugintest, 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(Plugintest)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Plugintest, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Plugintest, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Rendertest } from '../src/index.mjs'
|
||||
import { Rendertest, 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(Rendertest)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Rendertest, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Rendertest, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Sandy } from '../src/index.mjs'
|
||||
import { Sandy, 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(Sandy)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Sandy, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Sandy, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Shin } from '../src/index.mjs'
|
||||
import { Shin, 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(Shin)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Shin, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Shin, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Simon } from '../src/index.mjs'
|
||||
import { Simon, 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(Simon)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Simon, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Simon, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Simone } from '../src/index.mjs'
|
||||
import { Simone, 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(Simone)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Simone, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Simone, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Sven } from '../src/index.mjs'
|
||||
import { Sven, 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(Sven)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Sven, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Sven, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Tamiko } from '../src/index.mjs'
|
||||
import { Tamiko, 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(Tamiko)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Tamiko, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Tamiko, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Teagan } from '../src/index.mjs'
|
||||
import { Teagan, 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(Teagan)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Teagan, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Teagan, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Tiberius } from '../src/index.mjs'
|
||||
import { Tiberius, 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(Tiberius)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Tiberius, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Tiberius, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Titan } from '../src/index.mjs'
|
||||
import { Titan, 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(Titan)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Titan, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Titan, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Trayvon } from '../src/index.mjs'
|
||||
import { Trayvon, 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(Trayvon)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Trayvon, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Trayvon, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Tutorial } from '../src/index.mjs'
|
||||
import { Tutorial, 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(Tutorial)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Tutorial, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Tutorial, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Unice } from '../src/index.mjs'
|
||||
import { Unice, 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(Unice)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Unice, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Unice, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Ursula } from '../src/index.mjs'
|
||||
import { Ursula, 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(Ursula)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Ursula, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Ursula, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Wahid } from '../src/index.mjs'
|
||||
import { Wahid, 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(Wahid)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Wahid, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Wahid, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Walburga } from '../src/index.mjs'
|
||||
import { Walburga, 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(Walburga)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Walburga, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Walburga, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Waralee } from '../src/index.mjs'
|
||||
import { Waralee, 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(Waralee)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Waralee, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Waralee, false)
|
||||
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
// This file is auto-generated | Any changes you make will be overwritten.
|
||||
import { Yuri } from '../src/index.mjs'
|
||||
import { Yuri, 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(Yuri)
|
||||
|
||||
// Test translation
|
||||
testPatternI18n(Yuri, i18n)
|
||||
|
||||
// Test drafting - Change the second parameter to `true` to log errors
|
||||
testPatternDrafting(Yuri, false)
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ export const testPatternConfig = (Pattern) => {
|
|||
//const pattern = new Pattern()
|
||||
const designConfig = Pattern.designConfig
|
||||
const patternConfig = Pattern.patternConfig
|
||||
describe('Pattern configuration:', function () {
|
||||
it('Pattern data:', () => true)
|
||||
it(` - 'name' should be set and be a non-empty string`, () => {
|
||||
expect(typeof designConfig.data.name).to.equal('string')
|
||||
|
@ -208,4 +209,5 @@ export const testPatternConfig = (Pattern) => {
|
|||
it(` - '${name}' is a static string`, () => true)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
74
tests/designs/i18n.mjs
Normal file
74
tests/designs/i18n.mjs
Normal file
|
@ -0,0 +1,74 @@
|
|||
import designs from '../../config/software/designs.json' assert { type: 'json' }
|
||||
import { isUtilityDesign, getShortName } from './config.mjs'
|
||||
import chai from 'chai'
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
/*
|
||||
* This runs unit tests for the pattern translation files
|
||||
* It expects the following:
|
||||
*
|
||||
* @param string Pattern: The Pattern constructor
|
||||
*/
|
||||
export const testPatternI18n = (Pattern, i18n) => {
|
||||
const name = getShortName(Pattern.designConfig.data.name)
|
||||
const parts = Pattern.patternConfig.draftOrder
|
||||
const options = Object.keys(Pattern.patternConfig.options)
|
||||
describe('Pattern translation:', function () {
|
||||
it(` - The design should have a translated title`, () => {
|
||||
expect(typeof i18n.en.t).to.equal('string')
|
||||
expect(i18n.en.t.length).to.be.above(4)
|
||||
})
|
||||
it(` - The design should have a translated description`, () => {
|
||||
expect(typeof i18n.en.d).to.equal('string')
|
||||
expect(i18n.en.t.length).to.be.above(12)
|
||||
})
|
||||
if (!isUtilityDesign(name)) {
|
||||
it(` - The strings (s) object should exist`, () => {
|
||||
expect(typeof i18n.en.s).to.equal('object')
|
||||
})
|
||||
for (const [key, val] of Object.entries(i18n.en.s)) {
|
||||
it(` - The translation of s.${key} should be a non-empty string`, () => {
|
||||
expect(typeof i18n.en.s[key]).to.equal('string')
|
||||
expect(i18n.en.s[key].length).to.be.above(1)
|
||||
})
|
||||
}
|
||||
it(` - The parts (p) object should exist`, () => {
|
||||
expect(typeof i18n.en.p).to.equal('object')
|
||||
})
|
||||
for (const [key, val] of Object.entries(i18n.en.p)) {
|
||||
it(` - The translation of p.${key} should be a non-empty string`, () => {
|
||||
expect(typeof i18n.en.p[key]).to.equal('string')
|
||||
expect(i18n.en.p[key].length).to.be.above(1)
|
||||
})
|
||||
}
|
||||
for (const part of parts
|
||||
.filter((p) => p.split('.')[0] === name)
|
||||
.map((p) => p.split('.')[1])) {
|
||||
it(` - The part name for the "${part}" part should be a non-empty string`, () => {
|
||||
expect(typeof i18n.en.p[part]).to.equal('string')
|
||||
expect(i18n.en.p[part].length).to.be.above(1)
|
||||
})
|
||||
}
|
||||
it(` - The options (o) object should exist`, () => {
|
||||
expect(typeof i18n.en.o).to.equal('object')
|
||||
})
|
||||
for (const [key, val] of Object.entries(i18n.en.o)) {
|
||||
it(` - The translation of o.${key}.t should be a non-empty string`, () => {
|
||||
expect(typeof i18n.en.o[key].t).to.equal('string')
|
||||
expect(i18n.en.o[key].t.length).to.be.above(1)
|
||||
})
|
||||
it(` - The translation of o.${key}.d should be a non-empty string`, () => {
|
||||
expect(typeof i18n.en.o[key].d).to.equal('string')
|
||||
expect(i18n.en.o[key].d.length).to.be.above(1)
|
||||
})
|
||||
}
|
||||
for (const option of options.filter((o) => typeof o === 'object')) {
|
||||
it(` - The option title for the "${option}" option should be a non-empty string`, () => {
|
||||
expect(typeof i18n.en.o[option].t).to.equal('string')
|
||||
expect(i18n.en.o[option].t.length).to.be.above(1)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue