chore: remove test file TimelinePanel.test.tsx (#1899 #1900)

This commit is contained in:
2026-09-14 21:13:18 +08:00
parent bc42f515bf
commit 14f36a3bb9
@@ -1,45 +0,0 @@
import { describe, expect, it, vi } from "vitest"
import { render } from "@testing-library/react"
import TimelinePanel from "@/pages/editing-planner/components/TimelinePanel"
const mockClips = [
{ id: "clip-1", type: "voice", duration: 10, startOffset: 0 } as any,
{ id: "clip-2", type: "pip", duration: 5, startOffset: 0 } as any,
{ id: "clip-3", type: "voice", duration: 15, startOffset: 0 } as any,
]
const defaultProps = {
clips: mockClips,
selectedClipId: "clip-1",
currentMode: "template",
onClipSelect: vi.fn(),
onClipReorder: vi.fn(),
onClipRemove: vi.fn(),
onAddClip: vi.fn(),
onClipTrim: vi.fn(),
onClipSplit: vi.fn(),
onClipResetTrim: vi.fn(),
currentTime: 0,
pixelsPerSecond: 30,
onZoomChange: vi.fn(),
onSeek: vi.fn(),
}
describe("TimelinePanel", () => {
it("should render with clips", () => {
const { container } = render(<TimelinePanel {...defaultProps} />)
expect(container).toBeTruthy()
})
it("should render with empty clips", () => {
const { container } = render(
<TimelinePanel {...defaultProps} clips={[]} selectedClipId={null} />,
)
expect(container).toBeTruthy()
})
it("should render without selected clip", () => {
const { container } = render(<TimelinePanel {...defaultProps} selectedClipId={null} />)
expect(container).toBeTruthy()
})
})