mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:50:42 +00:00
12 lines
485 B
TypeScript
12 lines
485 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { normalizeTranscriptForMatch } from "./stt-live-audio.js";
|
|
|
|
describe("normalizeTranscriptForMatch", () => {
|
|
it("normalizes punctuation and common OpenClaw live transcription variants", () => {
|
|
expect(normalizeTranscriptForMatch("Open-Claw integration OK")).toBe("openclawintegrationok");
|
|
expect(normalizeTranscriptForMatch("Testing OpenFlaw realtime transcription")).toMatch(
|
|
/open(?:claw|flaw)/,
|
|
);
|
|
});
|
|
});
|