diff --git a/tests/filter.spec.ts b/tests/filter.spec.ts index ee62468..43b969c 100644 --- a/tests/filter.spec.ts +++ b/tests/filter.spec.ts @@ -102,3 +102,11 @@ test('clean: Should not throw exceptions when nothing but whitespace passed to f ) t.is(filter.clean(''), '') }) + +test('clean: Cleans non-english sentences', (t) => { + const filter = new Filter() + + const badwordtest = 'мило' + const teststring = filter.clean(badwordtest) + t.is(filter.clean(teststring), badwordtest) +})