Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
cc5803ac63
commit
cc96940362
2 changed files with 3 additions and 6 deletions
|
@ -105,8 +105,8 @@ describe('ProfanityFilterService', () => {
|
|||
const lowResult = profanityFilter.analyzeProfanity('damn');
|
||||
const mediumResult = profanityFilter.analyzeProfanity('shit');
|
||||
|
||||
expect(['low', 'medium']).toContain(lowResult.severity);
|
||||
expect(['medium', 'high']).toContain(mediumResult.severity);
|
||||
expect(lowResult.severity).toBe('low');
|
||||
expect(mediumResult.severity).toBe('medium');
|
||||
});
|
||||
|
||||
it('should handle multiple profanity words', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue