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

@ -4,16 +4,20 @@
// Dollar signs are allowed in EcmaScript identifier names, // Dollar signs are allowed in EcmaScript identifier names,
// which is helpful when running unrendered Mustache templates through eslint. // 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 // Shared tests
import { testPatternConfig } from '../../../tests/designs/config.mjs' import { testPatternConfig } from '../../../tests/designs/config.mjs'
import { testPatternI18n } from '../../../tests/designs/i18n.mjs'
import { testPatternDrafting } from '../../../tests/designs/drafting.mjs' import { testPatternDrafting } from '../../../tests/designs/drafting.mjs'
import { testPatternSampling } from '../../../tests/designs/sampling.mjs' import { testPatternSampling } from '../../../tests/designs/sampling.mjs'
// Test config // Test config
testPatternConfig($$Name$$) testPatternConfig($$Name$$)
// Test translation
testPatternI18n($$Name$$, i18n)
// Test drafting - Change the second parameter to `true` to log errors // Test drafting - Change the second parameter to `true` to log errors
testPatternDrafting($$Name$$, false) testPatternDrafting($$Name$$, false)

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -20,192 +20,194 @@ export const testPatternConfig = (Pattern) => {
//const pattern = new Pattern() //const pattern = new Pattern()
const designConfig = Pattern.designConfig const designConfig = Pattern.designConfig
const patternConfig = Pattern.patternConfig const patternConfig = Pattern.patternConfig
it('Pattern data:', () => true) describe('Pattern configuration:', function () {
it(` - 'name' should be set and be a non-empty string`, () => { it('Pattern data:', () => true)
expect(typeof designConfig.data.name).to.equal('string') it(` - 'name' should be set and be a non-empty string`, () => {
expect(designConfig.data.name.length > 1).to.be.true expect(typeof designConfig.data.name).to.equal('string')
}) expect(designConfig.data.name.length > 1).to.be.true
// })
it(` - 'version' should be set and be a non-empty string`, () => { //
expect(typeof designConfig.data.version).to.equal('string') it(` - 'version' should be set and be a non-empty string`, () => {
expect(designConfig.data.version.length > 1).to.be.true expect(typeof designConfig.data.version).to.equal('string')
}) expect(designConfig.data.version.length > 1).to.be.true
it(` - 'version' should be a proper semantic version`, () => { })
const chunks = designConfig.data.version.split('.') it(` - 'version' should be a proper semantic version`, () => {
if (chunks.length > 3) { const chunks = designConfig.data.version.split('.')
expect(designConfig.data.version.split('.').length).to.equal(4) if (chunks.length > 3) {
expect(chunks[2]).to.contain.oneOf(['-alpha', '-beta', '-rc']) expect(designConfig.data.version.split('.').length).to.equal(4)
} else expect(designConfig.version.split('.').length).to.equal(3) expect(chunks[2]).to.contain.oneOf(['-alpha', '-beta', '-rc'])
}) } else expect(designConfig.version.split('.').length).to.equal(3)
})
it('Monorepo data:', () => true) it('Monorepo data:', () => true)
// Store these for re-use // Store these for re-use
const name = getShortName(designConfig.data.name) const name = getShortName(designConfig.data.name)
it(` - 'name' should be resolvable to a short name`, () => { it(` - 'name' should be resolvable to a short name`, () => {
expect(typeof name).to.equal('string') expect(typeof name).to.equal('string')
expect(name.length > 1).to.be.true expect(name.length > 1).to.be.true
})
const meta = designs[name]
it(` - 'description' should be set and be a string of reasonable length`, () => {
expect(typeof meta.description).to.equal('string')
expect(meta.description.length > 15).to.be.true
expect(meta.description.length < 280).to.be.true
})
// Config tests for non-utility patterns only
if (typeof designs[name].tags !== 'undefined') {
it(` - 'design' should be set and be a string of reasonable length`, () => {
const people = Array.isArray(meta.design) ? meta.design : [meta.design]
for (const person of people) {
expect(typeof person).to.equal('string')
expect(person.length > 2).to.be.true
expect(person.length < 80).to.be.true
}
}) })
it(` - 'code' should be set and be a string of reasonable length`, () => { const meta = designs[name]
const people = Array.isArray(meta.code) ? meta.code : [meta.code] it(` - 'description' should be set and be a string of reasonable length`, () => {
for (const person of people) { expect(typeof meta.description).to.equal('string')
expect(typeof person).to.equal('string') expect(meta.description.length > 15).to.be.true
expect(person.length > 2).to.be.true expect(meta.description.length < 280).to.be.true
expect(person.length < 80).to.be.true
}
}) })
it(` - 'dfficulty' should be set and be a [1-5] number`, () => { // Config tests for non-utility patterns only
expect(typeof meta.difficulty).to.equal('number') if (typeof designs[name].tags !== 'undefined') {
expect([1, 2, 3, 4, 5].indexOf(meta.difficulty) === -1).to.be.false it(` - 'design' should be set and be a string of reasonable length`, () => {
}) const people = Array.isArray(meta.design) ? meta.design : [meta.design]
} for (const person of people) {
expect(typeof person).to.equal('string')
if (!isUtilityDesign(name)) { expect(person.length > 2).to.be.true
// Ensure required measurements are known measurements expect(person.length < 80).to.be.true
it('Required measurements:', () => true) }
for (const measurement of patternConfig.measurements || []) { })
it(` - '${measurement}' should be a known measurement`, () => { it(` - 'code' should be set and be a string of reasonable length`, () => {
expect(measurements.indexOf(measurement)).to.not.equal(-1) const people = Array.isArray(meta.code) ? meta.code : [meta.code]
for (const person of people) {
expect(typeof person).to.equal('string')
expect(person.length > 2).to.be.true
expect(person.length < 80).to.be.true
}
})
it(` - 'dfficulty' should be set and be a [1-5] number`, () => {
expect(typeof meta.difficulty).to.equal('number')
expect([1, 2, 3, 4, 5].indexOf(meta.difficulty) === -1).to.be.false
}) })
} }
it('Optional measurements:', () => true)
for (let measurement of patternConfig.optionalMeasurements || []) {
it(` - '${measurement}' should be a known measurement`, () => {
expect(measurements.indexOf(measurement)).to.not.equal(-1)
})
}
it('Requests all measurements it uses', () => {
const requested = {}
const patternMeasies = patternConfig.measurements.concat(patternConfig.optionalMeasurements)
for (let measurement of patternMeasies) {
requested[measurement] = cisFemaleAdult28[measurement]
}
const draft = new Pattern({ if (!isUtilityDesign(name)) {
measurements: requested, // Ensure required measurements are known measurements
}).draft() it('Required measurements:', () => true)
for (const measurement of patternConfig.measurements || []) {
const missWarnings = draft.setStores[0].logs.warning.filter((w, i, a) => { it(` - '${measurement}' should be a known measurement`, () => {
return w.match(/tried to access \`measurements/) && a.indexOf(w) === i expect(measurements.indexOf(measurement)).to.not.equal(-1)
})
chai.assert(
missWarnings.length === 0,
`expected part to request all used measurements. \nThe following measurements were requested in the config: ${patternMeasies.join(
', '
)} \nbut got the following warnings: \n${missWarnings.join('\n')}
`
)
})
}
// Test validity of the pattern's options
it('Pattern options:', () => true)
for (const name in patternConfig.options) {
const option = patternConfig.options[name]
const type = typeof option
if (type === 'object' && typeof option.pct !== 'undefined') {
it(` - If it has a 'menu' property, it should be a string or method`, () => {
if (option.menu)
expect(['string', 'function'].indexOf(typeof option.menu) === -1).to.equal(false)
})
// Percentage option
it(` - '${name}' is a percentage option`, () => true)
// Snapped options can just be hidden instead
if (option.hidden) {
if (option.snap) it(` - '${name}' is a hidden snap option`, () => true)
}
it(` - Should have a default value`, () => {
expect(typeof option.pct).to.equal('number')
})
it(` - Should have a minimum <= the default value`, () => {
expect(option.min <= option.pct).to.be.true
})
it(` - Should have a maximum >= the default value`, () => {
expect(option.max >= option.pct).to.be.true
})
} else if (type === 'object' && typeof option.deg !== 'undefined') {
// Degree option
it(` - '${name}' is a degree option`, () => true)
it(` - Should have a default value`, () => {
expect(typeof option.deg).to.equal('number')
})
it(` - Should have a minimum <= the default value`, () => {
expect(option.min <= option.deg).to.be.true
})
it(` - Should have a maximum >= the default value`, () => {
expect(option.max >= option.deg).to.be.true
})
} else if (type === 'object' && typeof option.mm !== 'undefined') {
// Millimeter option
it(` - '${name}' is a distance (mm) option`, () => true)
it(` - Should have a default value`, () => {
expect(typeof option.mm).to.equal('number')
})
it(` - Should have a minimum <= the default value`, () => {
expect(option.min <= option.mm).to.be.true
})
it(` - Should have a maximum >= the default value`, () => {
expect(option.max >= option.mm).to.be.true
})
if (mmAllowed.indexOf(getShortName(designConfig.data.name)) === -1) {
it(` - Patterns should not use mm options`, () => {
expect('Does not use mm').to.be.true
}) })
} }
} else if (type === 'object' && typeof option.bool !== 'undefined') { it('Optional measurements:', () => true)
// Boolean option for (let measurement of patternConfig.optionalMeasurements || []) {
it(` - '${name}' is a boolean option`, () => true) it(` - '${measurement}' should be a known measurement`, () => {
it(` - Should have a default value`, () => { expect(measurements.indexOf(measurement)).to.not.equal(-1)
expect(typeof option.bool).to.equal('boolean') })
}
it('Requests all measurements it uses', () => {
const requested = {}
const patternMeasies = patternConfig.measurements.concat(patternConfig.optionalMeasurements)
for (let measurement of patternMeasies) {
requested[measurement] = cisFemaleAdult28[measurement]
}
const draft = new Pattern({
measurements: requested,
}).draft()
const missWarnings = draft.setStores[0].logs.warning.filter((w, i, a) => {
return w.match(/tried to access \`measurements/) && a.indexOf(w) === i
})
chai.assert(
missWarnings.length === 0,
`expected part to request all used measurements. \nThe following measurements were requested in the config: ${patternMeasies.join(
', '
)} \nbut got the following warnings: \n${missWarnings.join('\n')}
`
)
}) })
it(` - Default value should be one of TRUE or FALSE`, () => {
expect([true, false].indexOf(option.bool)).to.not.equal(-1)
})
} else if (type === 'object' && typeof option.count !== 'undefined') {
// Count option
it(` - '${name}' is a count option`, () => true)
it(` - Should have a default value`, () => {
expect(typeof option.count).to.equal('number')
})
it(` - Should have a minimum <= the default value`, () => {
expect(option.min <= option.count).to.be.true
})
it(` - Should have a maximum >= the default value`, () => {
expect(option.max >= option.count).to.be.true
})
} else if (type === 'object' && typeof option.list !== 'undefined') {
// List option
it(` - '${name}' is a list option`, () => true)
it(` - Should have a default value`, () => {
expect(typeof option.dflt).to.not.equal('undefined')
})
it(` - Its default value should be in the list of options`, () => {
expect(option.list.indexOf(option.dflt)).to.not.equal(-1)
})
it(` - Its options should be an array of numbers or strings`, () => {
for (let o of option.list) expect(['number', 'string'].indexOf(typeof o)).to.not.equal(-1)
})
} else if (type === 'number') {
// Static number
it(` - '${name}' is a static number`, () => true)
} else if (type === 'string') {
// Static string
it(` - '${name}' is a static string`, () => true)
} }
}
// Test validity of the pattern's options
it('Pattern options:', () => true)
for (const name in patternConfig.options) {
const option = patternConfig.options[name]
const type = typeof option
if (type === 'object' && typeof option.pct !== 'undefined') {
it(` - If it has a 'menu' property, it should be a string or method`, () => {
if (option.menu)
expect(['string', 'function'].indexOf(typeof option.menu) === -1).to.equal(false)
})
// Percentage option
it(` - '${name}' is a percentage option`, () => true)
// Snapped options can just be hidden instead
if (option.hidden) {
if (option.snap) it(` - '${name}' is a hidden snap option`, () => true)
}
it(` - Should have a default value`, () => {
expect(typeof option.pct).to.equal('number')
})
it(` - Should have a minimum <= the default value`, () => {
expect(option.min <= option.pct).to.be.true
})
it(` - Should have a maximum >= the default value`, () => {
expect(option.max >= option.pct).to.be.true
})
} else if (type === 'object' && typeof option.deg !== 'undefined') {
// Degree option
it(` - '${name}' is a degree option`, () => true)
it(` - Should have a default value`, () => {
expect(typeof option.deg).to.equal('number')
})
it(` - Should have a minimum <= the default value`, () => {
expect(option.min <= option.deg).to.be.true
})
it(` - Should have a maximum >= the default value`, () => {
expect(option.max >= option.deg).to.be.true
})
} else if (type === 'object' && typeof option.mm !== 'undefined') {
// Millimeter option
it(` - '${name}' is a distance (mm) option`, () => true)
it(` - Should have a default value`, () => {
expect(typeof option.mm).to.equal('number')
})
it(` - Should have a minimum <= the default value`, () => {
expect(option.min <= option.mm).to.be.true
})
it(` - Should have a maximum >= the default value`, () => {
expect(option.max >= option.mm).to.be.true
})
if (mmAllowed.indexOf(getShortName(designConfig.data.name)) === -1) {
it(` - Patterns should not use mm options`, () => {
expect('Does not use mm').to.be.true
})
}
} else if (type === 'object' && typeof option.bool !== 'undefined') {
// Boolean option
it(` - '${name}' is a boolean option`, () => true)
it(` - Should have a default value`, () => {
expect(typeof option.bool).to.equal('boolean')
})
it(` - Default value should be one of TRUE or FALSE`, () => {
expect([true, false].indexOf(option.bool)).to.not.equal(-1)
})
} else if (type === 'object' && typeof option.count !== 'undefined') {
// Count option
it(` - '${name}' is a count option`, () => true)
it(` - Should have a default value`, () => {
expect(typeof option.count).to.equal('number')
})
it(` - Should have a minimum <= the default value`, () => {
expect(option.min <= option.count).to.be.true
})
it(` - Should have a maximum >= the default value`, () => {
expect(option.max >= option.count).to.be.true
})
} else if (type === 'object' && typeof option.list !== 'undefined') {
// List option
it(` - '${name}' is a list option`, () => true)
it(` - Should have a default value`, () => {
expect(typeof option.dflt).to.not.equal('undefined')
})
it(` - Its default value should be in the list of options`, () => {
expect(option.list.indexOf(option.dflt)).to.not.equal(-1)
})
it(` - Its options should be an array of numbers or strings`, () => {
for (let o of option.list) expect(['number', 'string'].indexOf(typeof o)).to.not.equal(-1)
})
} else if (type === 'number') {
// Static number
it(` - '${name}' is a static number`, () => true)
} else if (type === 'string') {
// Static string
it(` - '${name}' is a static string`, () => true)
}
}
})
} }

74
tests/designs/i18n.mjs Normal file
View 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)
})
}
}
})
}