mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-26 15:55:13 +00:00
test: specify sandbox image load output
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user