mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 14:55:37 +00:00
test(export): preserve fixed aspect crop boundary
This commit is contained in:
@@ -32,6 +32,18 @@ describe("calculateMp4SourceDimensions", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("ignores crop bounds for fixed-aspect exports", () => {
|
||||
expect(
|
||||
calculateMp4SourceDimensions(1920, 1080, "9:16", {
|
||||
width: 0.5,
|
||||
height: 0.5,
|
||||
}),
|
||||
).toEqual({
|
||||
width: 1080,
|
||||
height: 1920,
|
||||
});
|
||||
});
|
||||
|
||||
it("uses the rotated source bounds for portrait social ratios", () => {
|
||||
expect(calculateMp4SourceDimensions(1920, 1080, "4:5")).toEqual({
|
||||
width: 1080,
|
||||
|
||||
Reference in New Issue
Block a user