fix copied test

This commit is contained in:
Siddharth Singh 2024-12-27 05:09:29 +05:30
parent b6e41f4eaf
commit 8a2ac8f7f6
No known key found for this signature in database

View file

@ -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');