Release Timeline Studio v0.4.0

This commit is contained in:
haixin.yang committed 2026-07-18 16:06:53 +08:00
1 parent 2b9a1e7e0b
commit 7076e005af
66 files changed
+2246 -545

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import { describe, expect, it, vi } from "vitest";
import { createAssetLibraryActions } from "./assetLibraryActions.js";
describe("asset library visual selection", () => {
it("does not extract video audio until the user requests it from the clip menu", async () => {
const video = { id: "video-1", type: "video", src: "blob:video", duration: 8 };
const deps = {
replaceVisualTimeline: vi.fn(),
getVisualDurationForAsset: vi.fn(() => 8),
extractVideoSourceAudio: vi.fn(),
notify: vi.fn(),
};
const { selectAsset } = createAssetLibraryActions(deps);
await selectAsset(video);
expect(deps.replaceVisualTimeline).toHaveBeenCalledWith(video, 8);
expect(deps.extractVideoSourceAudio).not.toHaveBeenCalled();
});
});