mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 06:30:03 +00:00
Revert "feat: Persist Studio manual edits via manifest (#593)"
This reverts commit d0abe90a82.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { resolveCompositionPreviewScale, resolveThumbnailSeekTime } from "./CompositionsTab";
|
||||
import { resolveCompositionPreviewScale } from "./CompositionsTab";
|
||||
|
||||
describe("resolveCompositionPreviewScale", () => {
|
||||
it("scales a 16:9 stage to fit the composition card", () => {
|
||||
@@ -35,18 +35,3 @@ describe("resolveCompositionPreviewScale", () => {
|
||||
).toBeCloseTo(80 / 1920);
|
||||
});
|
||||
});
|
||||
|
||||
describe("resolveThumbnailSeekTime", () => {
|
||||
it("uses the default 3s frame for compositions longer than 3s", () => {
|
||||
expect(resolveThumbnailSeekTime(6)).toBe(3);
|
||||
});
|
||||
|
||||
it("uses the midpoint for compositions shorter than 3s", () => {
|
||||
expect(resolveThumbnailSeekTime(2)).toBe(1);
|
||||
});
|
||||
|
||||
it("falls back to the default 3s frame when duration is unknown", () => {
|
||||
expect(resolveThumbnailSeekTime(null)).toBe(3);
|
||||
expect(resolveThumbnailSeekTime(Number.NaN)).toBe(3);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user