ktx/packages/cli/test/context/ingest/context-candidates/embedding-text.test.ts
2026-05-25 13:17:46 +02:00

13 lines
565 B
TypeScript

import { describe, expect, it } from 'vitest';
import { buildContextCandidateEmbeddingText } from '../../../../src/context/ingest/context-candidates/embedding-text.js';
describe('buildContextCandidateEmbeddingText', () => {
it('matches the existing dedup embedding input format', () => {
expect(
buildContextCandidateEmbeddingText({
topic: 'Revenue Recognition',
assertion: 'Booked revenue excludes refunds and test accounts.',
}),
).toBe('Revenue Recognition - Booked revenue excludes refunds and test accounts.');
});
});