mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: update format-decoders test for bmp/jxl support
The test used "bmp" as an example unknown format, but bmp is now a supported CLI-decoded format. Use "xyz" instead and add assertions for bmp and jxl.
This commit is contained in:
@@ -58,8 +58,16 @@ describe("needsCliDecode", () => {
|
||||
expect(needsCliDecode("")).toBe(false);
|
||||
});
|
||||
|
||||
it("returns true for bmp format", () => {
|
||||
expect(needsCliDecode("bmp")).toBe(true);
|
||||
});
|
||||
|
||||
it("returns true for jxl format", () => {
|
||||
expect(needsCliDecode("jxl")).toBe(true);
|
||||
});
|
||||
|
||||
it("returns false for unknown format", () => {
|
||||
expect(needsCliDecode("bmp")).toBe(false);
|
||||
expect(needsCliDecode("xyz")).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user