mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-30 11:21:07 +00:00
fix(tests): refresh generated schema contracts
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user