augmenttoolkit / server /tests /unit /services /inAppNotificationActions.test.ts
Leon4gr45's picture
Upload folder using huggingface_hub (part 6)
1f5ea39 verified
Raw
History Blame Contribute Delete
726 Bytes
/**
* 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');
});
});