Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
import { renderToStaticMarkup } from "react-dom/server";
import { describe, expect, it } from "vite-plus/test";
import { QRCodeSvg } from "./qr-code";
describe("QRCodeSvg", () => {
it("renders with explicit high-contrast colors by default", () => {
const markup = renderToStaticMarkup(<QRCodeSvg value="https://example.com/pair" />);
expect(markup).toContain('fill="#fff"');
expect(markup).toContain('fill="#000"');
expect(markup).not.toContain('fill="currentColor"');
});
it("supports custom foreground and background colors", () => {
const markup = renderToStaticMarkup(
<QRCodeSvg
value="https://example.com/pair"
foregroundColor="#123456"
backgroundColor="#abcdef"
/>,
);
expect(markup).toContain('fill="#abcdef"');
expect(markup).toContain('fill="#123456"');
});
});