Files
TREK/server/tests/unit/services/inAppNotificationActions.test.ts
2026-05-25 21:59:42 +02:00

22 lines
726 B
TypeScript

/**
* Unit tests for inAppNotificationActions — NOTIF-ACT-001 through NOTIF-ACT-008.
* Pure Map registry — no DB or external dependencies.
*/
import { getAction } from '../../../src/services/inAppNotificationActions';
import { describe, it, expect } from 'vitest';
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');
});
});