fix: update notification provider type in tests and enhance email injection sanitization

This commit is contained in:
GitHub Actions
2026-03-06 06:31:11 +00:00
parent 5bbae48b6b
commit ee224adcf1
9 changed files with 572 additions and 77 deletions

View File

@@ -119,7 +119,7 @@ describe('notifications api', () => {
await expect(createProvider({ name: 'Bad', type: 'slack' })).rejects.toThrow('Unsupported notification provider type: slack')
await expect(updateProvider('bad', { type: 'generic' })).rejects.toThrow('Unsupported notification provider type: generic')
await expect(testProvider({ id: 'bad', type: 'email' })).rejects.toThrow('Unsupported notification provider type: email')
await expect(testProvider({ id: 'bad', type: 'telegram' })).rejects.toThrow('Unsupported notification provider type: telegram')
})
it('fetches templates and previews provider payloads with data', async () => {