test: tolerate opencl live stt transcript variant · openclaw/openclaw@d8b2550
steipete
·
2026-04-29
·
via Recent Commits to openclaw:main
File tree
src/plugin-sdk/test-helpers
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,7 @@ export function normalizeTranscriptForMatch(value: string): string {
|
14 | 14 | |
15 | 15 | type ExpectedTranscriptMatch = RegExp | string; |
16 | 16 | |
17 | | -export const OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE = /open(?:claw|flaw|clar|core)/; |
| 17 | +export const OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE = /open(?:claw|cl|flaw|clar|core)/; |
18 | 18 | |
19 | 19 | export function expectOpenClawLiveTranscriptMarker(value: string): void { |
20 | 20 | expect(normalizeTranscriptForMatch(value)).toMatch(OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,6 +14,9 @@ describe("normalizeTranscriptForMatch", () => {
|
14 | 14 | expect(normalizeTranscriptForMatch("OpenCore xAI realtime transcription")).toMatch( |
15 | 15 | OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE, |
16 | 16 | ); |
| 17 | +expect(normalizeTranscriptForMatch("OpenCL xAI realtime transcription")).toMatch( |
| 18 | +OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE, |
| 19 | +); |
17 | 20 | expectOpenClawLiveTranscriptMarker("OpenClar integration OK"); |
18 | 21 | }); |
19 | 22 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。