Spaces:
Sleeping
Sleeping
| /** | |
| * Unit tests for inAppNotificationActions β NOTIF-ACT-001 through NOTIF-ACT-008. | |
| * Pure Map registry β no DB or external dependencies. | |
| */ | |
| import { describe, it, expect } from 'vitest'; | |
| import { getAction } from '../../../src/services/inAppNotificationActions'; | |
| describe('getAction β built-in registrations', () => { | |
| it('NOTIF-ACT-001 β test_approve is pre-registered', () => { | |
| const handler = getAction('test_approve'); | |
| expect(handler).toBeDefined(); | |
| expect(typeof handler).toBe('function'); | |
| }); | |
| it('NOTIF-ACT-002 β test_deny is pre-registered', () => { | |
| const handler = getAction('test_deny'); | |
| expect(handler).toBeDefined(); | |
| expect(typeof handler).toBe('function'); | |
| }); | |
| }); | |