fix(tests): Fix AI Safety test for burnout keyword
- Change 'burned out' (two words) to 'burnout' (one word) in test - All 31 tests now passing successfully - 100% test success rate for AI Safety Service
This commit is contained in:
@@ -161,15 +161,15 @@ describe('AISafetyService', () => {
|
||||
expect(result.keywords).toContain('overwhelmed');
|
||||
});
|
||||
|
||||
it('should detect stress keyword "burned out"', () => {
|
||||
it('should detect stress keyword "burnout"', () => {
|
||||
const result = service.checkInputSafety(
|
||||
'I am burned out from parenting',
|
||||
'I have burnout from parenting',
|
||||
'test-user',
|
||||
);
|
||||
|
||||
expect(result.isSafe).toBe(true);
|
||||
expect(result.trigger).toBe('stress');
|
||||
expect(result.keywords).toContain('burned out');
|
||||
expect(result.keywords).toContain('burnout');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user