Skip to content

Commit 77bf7b3

Browse files
Sportingerclaude
andcommitted
test: transcriptMoments expectations follow the calibrated kernel moment schema
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 84e63db commit 77bf7b3

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

tests/unit/transcriptMoments.test.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,28 +58,34 @@ describe('transcript moments', () => {
5858

5959
await expect(buildTranscriptMoments(transcriptSnapshot(), executor)).resolves.toEqual([
6060
{
61+
schemaVersion: 1,
6162
handle: '$m1',
62-
source: 'media-1',
63-
sourceRange: [10, 10.4],
63+
source: { mediaId: 'media-1' },
64+
sourceRange: { startSeconds: 10, endSeconds: 10.4 },
6465
evidence: { transcript: 'Ein' },
6566
confidence: 1,
6667
indexVersion: TRANSCRIPT_MOMENT_INDEX_VERSION,
68+
analysisSources: ['transcript'],
6769
},
6870
{
71+
schemaVersion: 1,
6972
handle: '$m2',
70-
source: 'media-1',
71-
sourceRange: [10.4, 10.9],
73+
source: { mediaId: 'media-1' },
74+
sourceRange: { startSeconds: 10.4, endSeconds: 10.9 },
7275
evidence: { transcript: 'guter Moment.' },
7376
confidence: 1,
7477
indexVersion: TRANSCRIPT_MOMENT_INDEX_VERSION,
78+
analysisSources: ['transcript'],
7579
},
7680
{
81+
schemaVersion: 1,
7782
handle: '$m3',
78-
source: 'media-1',
79-
sourceRange: [12, 12.5],
83+
source: { mediaId: 'media-1' },
84+
sourceRange: { startSeconds: 12, endSeconds: 12.5 },
8085
evidence: { transcript: 'Weiter.' },
8186
confidence: 1,
8287
indexVersion: TRANSCRIPT_MOMENT_INDEX_VERSION,
88+
analysisSources: ['transcript'],
8389
},
8490
]);
8591
expect(executor).toHaveBeenCalledTimes(2);

0 commit comments

Comments
 (0)