diff --git a/tests/filter.spec.ts b/tests/filter.spec.ts index 43b969c..d131404 100644 --- a/tests/filter.spec.ts +++ b/tests/filter.spec.ts @@ -106,7 +106,16 @@ test('clean: Should not throw exceptions when nothing but whitespace passed to f test('clean: Cleans non-english sentences', (t) => { const filter = new Filter() - const badwordtest = 'мило' - const teststring = filter.clean(badwordtest) - t.is(filter.clean(teststring), badwordtest) + const ruBadWordTest = 'мило' + const cnBadWordTest = '吃' + const jpBadWordTest = 'ワイン' + + let teststring = filter.clean(ruBadWordTest) + t.is(filter.clean(teststring), ruBadWordTest) + + teststring = filter.clean(cnBadWordTest) + t.is(filter.clean(teststring), cnBadWordTest) + + teststring = filter.clean(jpBadWordTest) + t.is(filter.clean(teststring), jpBadWordTest) })