Files
oh-my-pi/packages/coding-agent/test/image-b64poly.test.ts
T
can1357 9d457f73d9 test: migrated test imports to package subpath exports
- Replaced relative `../src` imports with `@oh-my-pi/pi-ai` and `@oh-my-pi/pi-agent-core` subpaths.
2026-06-08 19:03:55 +02:00

11 lines
315 B
TypeScript

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