Files
oh-my-pi/packages/coding-agent/test/image-b64poly.test.ts
T
2026-05-12 04:09:33 +02:00

11 lines
296 B
TypeScript

import { describe, expect, it } from "bun:test";
describe("Buffer.toBase64", async () => {
await import("../src/utils/image-resize");
it("should return a base64 string", () => {
const buffer = Buffer.from("Hello, world!");
expect(buffer.toBase64()).toBe("SGVsbG8sIHdvcmxkIQ==");
});
});