test: tolerate opencl live stt transcript variant

This commit is contained in:
Peter Steinberger
2026-04-29 14:37:24 +01:00
parent dda765c445
commit d8b25506bb
2 changed files with 4 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ export function normalizeTranscriptForMatch(value: string): string {
type ExpectedTranscriptMatch = RegExp | string;
export const OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE = /open(?:claw|flaw|clar|core)/;
export const OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE = /open(?:claw|cl|flaw|clar|core)/;
export function expectOpenClawLiveTranscriptMarker(value: string): void {
expect(normalizeTranscriptForMatch(value)).toMatch(OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE);

View File

@@ -14,6 +14,9 @@ describe("normalizeTranscriptForMatch", () => {
expect(normalizeTranscriptForMatch("OpenCore xAI realtime transcription")).toMatch(
OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE,
);
expect(normalizeTranscriptForMatch("OpenCL xAI realtime transcription")).toMatch(
OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE,
);
expectOpenClawLiveTranscriptMarker("OpenClar integration OK");
});
});