mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user