diff --git a/src/utils/language.test.ts b/src/utils/language.test.ts index b9563bf0..cffd3d50 100644 --- a/src/utils/language.test.ts +++ b/src/utils/language.test.ts @@ -41,23 +41,6 @@ Deno.test('Tests for language detection', async (t) => { ); }); - await t.step('The horrific problem sentence', async () => { - switch (Conf.languageDetector) { - case 'lingua': - assertEquals( - await detectLanguage(`It may die when I die, and that's okay. It's my earnings.`, 0.90), - 'en', - ); - break; - default: - assertNotEquals( - await detectLanguage(`It may die when I die, and that's okay. It's my earnings.`, 0.90), - 'en', - ); - break; - } - }); - await t.step('The horrific problem sentence', async () => { const tester = Conf.languageDetector === 'lingua' ? assertEquals : assertNotEquals; tester(await detectLanguage(`It may die when I die, and that's okay. It's my earnings.`, 0.90), 'en');