Skip to content

Commit

Permalink
chore: bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Dec 18, 2023
1 parent 6969ffd commit 24a98a9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/react-components/tests/translations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,14 @@ type TemplateStrings = {

const test = base.extend<{
en: Language
translations: Partial<SupportedLanguages>
translations: SupportedLanguages
templates: Partial<TemplateStrings>
}>({
en: async ({}, use) => {
await use(supportedLanguages.en)
},
translations: async ({}, use) => {
const translations: Partial<SupportedLanguages> = {}
for (const [language, translation] of Object.entries(supportedLanguages)) {
translations[language as keyof typeof supportedLanguages] = translation
}
await use(translations)
await use(supportedLanguages)
},
templates: async ({ en }, use) => {
const templates: Partial<TemplateStrings> = {}
Expand Down

0 comments on commit 24a98a9

Please sign in to comment.