summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/fps/__tests__
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-04-07 01:09:13 +0200
committerMaze Winther <mazewinther@gmail.com>2026-04-07 01:09:13 +0200
commite4b67094e757917588fb624a30aa046667403add (patch)
tree55452692eac69a5a63b58f2a5cdb701dd7023d68 /apps/web/src/lib/fps/__tests__
parent79df73643185c02493364a077402726d1fa7b9ec (diff)
downloadopencut-e4b67094e757917588fb624a30aa046667403add.tar.gz
refactor: split effects and masks into dedicated rust crates, introduce MediaTime and FrameRate
Diffstat (limited to 'apps/web/src/lib/fps/__tests__')
-rw-r--r--apps/web/src/lib/fps/__tests__/fps.test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/web/src/lib/fps/__tests__/fps.test.ts b/apps/web/src/lib/fps/__tests__/fps.test.ts
index fd082bb2..10eed8d9 100644
--- a/apps/web/src/lib/fps/__tests__/fps.test.ts
+++ b/apps/web/src/lib/fps/__tests__/fps.test.ts
@@ -36,16 +36,16 @@ describe("getRaisedProjectFpsForImportedMedia", () => {
test("raises the project fps to match a higher-fps import", () => {
expect(
getRaisedProjectFpsForImportedMedia({
- currentFps: 30,
+ currentFps: { numerator: 30, denominator: 1 },
importedAssets: [{ type: "video", fps: 60 }],
}),
- ).toBe(60);
+ ).toEqual({ numerator: 60, denominator: 1 });
});
test("does not lower the project fps for lower-fps imports", () => {
expect(
getRaisedProjectFpsForImportedMedia({
- currentFps: 60,
+ currentFps: { numerator: 60, denominator: 1 },
importedAssets: [{ type: "video", fps: 10 }],
}),
).toBeNull();
@@ -54,7 +54,7 @@ describe("getRaisedProjectFpsForImportedMedia", () => {
test("ignores non-video imports", () => {
expect(
getRaisedProjectFpsForImportedMedia({
- currentFps: 30,
+ currentFps: { numerator: 30, denominator: 1 },
importedAssets: [
{ type: "image", fps: 60 },
{ type: "audio", fps: 120 },