test: specify sandbox image load output

This commit is contained in:
Shakker
2026-05-12 00:38:34 +01:00
parent b516f8f228
commit 46ab30a541

View File

@@ -268,7 +268,10 @@ describe("loadImageFromRef", () => {
);
expect(image?.type).toBe("image");
expect(image?.data.length).toBeGreaterThan(0);
expect(image?.mimeType).toBe("image/png");
expect(image?.data).toBe(
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAADUlEQVR4nGP4////KwAJ5gPoxLp9owAAAABJRU5ErkJggg==",
);
} finally {
await fs.rm(sandboxParent, { recursive: true, force: true });
}