mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:40:44 +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;
|
||||
|
||||
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);
|
||||
|
||||
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user