mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-16 08:25:14 +02:00
13 lines
565 B
TypeScript
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.');
|
|
});
|
|
});
|