mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: tolerate opencl live stt transcript variant
This commit is contained in:
@@ -14,7 +14,7 @@ export function normalizeTranscriptForMatch(value: string): string {
|
|||||||
|
|
||||||
type ExpectedTranscriptMatch = RegExp | 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 {
|
export function expectOpenClawLiveTranscriptMarker(value: string): void {
|
||||||
expect(normalizeTranscriptForMatch(value)).toMatch(OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE);
|
expect(normalizeTranscriptForMatch(value)).toMatch(OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE);
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ describe("normalizeTranscriptForMatch", () => {
|
|||||||
expect(normalizeTranscriptForMatch("OpenCore xAI realtime transcription")).toMatch(
|
expect(normalizeTranscriptForMatch("OpenCore xAI realtime transcription")).toMatch(
|
||||||
OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE,
|
OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE,
|
||||||
);
|
);
|
||||||
|
expect(normalizeTranscriptForMatch("OpenCL xAI realtime transcription")).toMatch(
|
||||||
|
OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE,
|
||||||
|
);
|
||||||
expectOpenClawLiveTranscriptMarker("OpenClar integration OK");
|
expectOpenClawLiveTranscriptMarker("OpenClar integration OK");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user