Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

729 B
Raw Blame
/**
 * 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');
  });
});