Open History to see the last commit
1import { expect, it } from "vite-plus/test";
2
3import { resolveSpeechPresentation } from "./ComposerSpeechButton";
4
5it("keeps a model download below 100 percent while preparing", () => {
6 const state = { phase: "preparing", error: null, errorAction: null } as const;
7 expect(resolveSpeechPresentation(state, { downloaded: 995, total: 1_000 }).status).toBe(
8 "Downloading model 99%",
9 );
10});