fix(test): correct edit-metadata assertion from toBeUndefined to toBeNull

The inspectMetadata function returns null (not undefined) when no EXIF
data is present. Fix the test assertion to match.
This commit is contained in:
Siddharth Kumar Sah
2026-04-13 01:13:30 +08:00
parent 498cf4ab3c
commit d6d65b6b61
+1 -1
View File
@@ -3763,7 +3763,7 @@ describe("Edit metadata", () => {
});
expect(res.statusCode).toBe(200);
const body = JSON.parse(res.body);
expect(body.exif).toBeUndefined();
expect(body.exif).toBeNull();
});
it("rejects request with no file", async () => {