mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-20 13:51:45 +00:00
22 lines
726 B
TypeScript
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');
|
|
});
|
|
});
|