fix(tests): refresh generated schema contracts

This commit is contained in:
Tak Hoffman
2026-03-28 21:18:05 -05:00
parent 1c8758fbd5
commit e61ffa68f1

View File

@@ -1,5 +1,6 @@
import { writeFileSync } from "node:fs";
import { afterEach, describe, expect, it, vi } from "vitest";
import type { OpenClawConfig } from "../../src/config/config.js";
import {
buildMicrosoftSpeechProvider,
isCjkDominant,
@@ -7,6 +8,8 @@ import {
} from "./speech-provider.js";
import * as ttsModule from "./tts.js";
const TEST_CFG = {} as OpenClawConfig;
describe("listMicrosoftVoices", () => {
const originalFetch = globalThis.fetch;
@@ -95,6 +98,7 @@ describe("buildMicrosoftSpeechProvider", () => {
await provider.synthesize({
text: "你好,这是一个测试 hello",
cfg: TEST_CFG,
providerConfig: {
enabled: true,
voice: "en-US-MichelleNeural",
@@ -105,7 +109,7 @@ describe("buildMicrosoftSpeechProvider", () => {
},
providerOverrides: {},
timeoutMs: 1000,
target: "audio",
target: "audio-file",
});
expect(edgeSpy).toHaveBeenCalledWith(
@@ -126,6 +130,7 @@ describe("buildMicrosoftSpeechProvider", () => {
await provider.synthesize({
text: "你好,这是一个测试 hello",
cfg: TEST_CFG,
providerConfig: {
enabled: true,
voice: "en-US-AvaNeural",
@@ -136,7 +141,7 @@ describe("buildMicrosoftSpeechProvider", () => {
},
providerOverrides: {},
timeoutMs: 1000,
target: "audio",
target: "audio-file",
});
expect(edgeSpy).toHaveBeenCalledWith(