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:
SnapOtter
2026-04-24 23:39:09 +08:00
parent 8633dba431
commit c3e2b179b7
+9 -1
View File
@@ -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);
});
});