Default languages with env & langcodes typed (#94)

This commit is contained in:
David
2022-02-24 19:53:31 +01:00
committed by GitHub
parent 5e4db73a9f
commit 5856776785
15 changed files with 89 additions and 50 deletions

View File

@@ -13,7 +13,7 @@ describe("replaceBoth", () => {
langType: LangType
) => (
Object.entries(checkObj[langType]).forEach(([code, replacement]) => {
const res = replaceBoth(checkType, { source: "", target: "", [langType]: code })
const res = replaceBoth(checkType, { source: "auto", target: "en", [langType]: code })
expect(res[langType]).toBe(replacement);
})
);