mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
fix copied test
This commit is contained in:
parent
b6e41f4eaf
commit
8a2ac8f7f6
1 changed files with 0 additions and 17 deletions
|
|
@ -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 () => {
|
await t.step('The horrific problem sentence', async () => {
|
||||||
const tester = Conf.languageDetector === 'lingua' ? assertEquals : assertNotEquals;
|
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');
|
tester(await detectLanguage(`It may die when I die, and that's okay. It's my earnings.`, 0.90), 'en');
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue