Skip to content

Commit 30a0bbb

Browse files
committed
fix: fixed omni e2e
1 parent 9761932 commit 30a0bbb

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

packages/cli/tests/e2e/omni.e2e.test.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,19 @@ describe("e2e: omni", () => {
1515
expect(exitCode, stderr).toBe(0);
1616
expect(stderr).toMatch(/omni|--message|--audio|text-only/i);
1717
});
18-
19-
test("omni --list-voices 输出音色列表并退出", async () => {
20-
const { stdout, stderr, exitCode } = await runCli(["omni", "--list-voices"]);
21-
expect(exitCode, stderr).toBe(0);
22-
expect(stdout).toMatch(/Omni output voices:/);
23-
expect(stdout).toMatch(/Dylan/);
24-
expect(stdout).toMatch(/Cherry/);
25-
expect(stdout).toMatch(/Total: 17 voices/);
26-
});
2718
});
2819

2920
describe.skipIf(!isBailianE2EMediaEnabled() || !isDashScopeE2EReady())(
3021
"e2e: omni(DashScope 媒体)",
3122
() => {
23+
test("omni --list-voices 输出音色列表并退出", async () => {
24+
const { stdout, stderr, exitCode } = await runCli(["omni", "--list-voices"]);
25+
expect(exitCode, stderr).toBe(0);
26+
expect(stdout).toMatch(/Omni output voices:/);
27+
expect(stdout).toMatch(/Dylan/);
28+
expect(stdout).toMatch(/Cherry/);
29+
expect(stdout).toMatch(/Total: 17 voices/);
30+
});
3231
test("omni 缺少 --message 时打印子命令帮助并退出 (0)", async () => {
3332
const { stderr, exitCode } = await runCli([
3433
"omni",

0 commit comments

Comments
 (0)