mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 19:16:08 +00:00
724c88c201
A mechanical prettier --write over server/src, server/tests, server/scripts and shared/src with the workspaces' .prettierrc; nothing but layout and import order changes, and every file keeps the same set of imports. shared is formatted throughout and its format baseline is empty. The server baseline keeps the 35 files that Prettier would grow past their lint:size limit (they need a split first, which is not a formatting change), and the generated entity files stay as their generator writes them.
22 lines
729 B
TypeScript
22 lines
729 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/nest/notifications/in-app-actions';
|
|
|
|
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');
|
|
});
|
|
});
|