Files
ai-video-editor/src/lib/timelineViewModel.test.js
T
2026-07-17 13:49:40 +08:00

14 lines
580 B
JavaScript

import { describe, expect, it } from "vitest";
import { shouldShowStickerTrack } from "./timelineViewModel.js";
describe("sticker track visibility", () => {
it("hides an empty sticker track even if it was previously selected", () => {
expect(shouldShowStickerTrack({ stickerSegments: [] })).toBe(false);
});
it("shows the sticker track for content and active sticker drags", () => {
expect(shouldShowStickerTrack({ stickerSegments: [{ id: "one" }] })).toBe(true);
expect(shouldShowStickerTrack({ assetDragPreview: { type: "sticker" } })).toBe(true);
});
});