GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — opencode/packages/opencode/test/util/data-url.test.ts at dev · sujee/opencode Expand file tree/ Copy pathdata-url.test.tsMore file actions 14 lines (12 loc) · 482 Bytes / Copy pathdata-url.test.tsFile metadata and controls14 lines (12 loc) · 482 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 import { describe, expect, test } from "bun:test" import { decodeDataUrl } from "../../src/util/data-url" describe("decodeDataUrl", () => { test("decodes base64 data URLs", () => { const body = '{\n "ok": true\n}\n' const url = `data:text/plain;base64,${Buffer.from(body).toString("base64")}` expect(decodeDataUrl(url)).toBe(body) }) test("decodes plain data URLs", () => { expect(decodeDataUrl("data:text/plain,hello%20world")).toBe("hello world") }) }) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |