Skip to content

Commit

Permalink
test(clean): add test for cleaning russian letters
Browse files Browse the repository at this point in the history
add basic test to ensure exception is not thrown when cleaning russion letters

#174
  • Loading branch information
web-mech committed Aug 27, 2024
1 parent 877b9d1 commit 790e85f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/filter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

0 comments on commit 790e85f

Please sign in to comment.