import { test, expect } from "bun:test" import { createSnippetUrl, getUncompressedSnippetString, getBase64PoundSnippetString, } from "lib" declare module "bun:test" { interface Matchers { toMatchInlineSnapshot(snapshot?: string | null): Promise } } test("create snippets url", () => { const url = createSnippetUrl(` export default () => ( ) `) expect(url).toMatchInlineSnapshot( `"https://tscircuit.com/editor?#data:application/gzip;base64,H4sIAJsBqGcAAy2NTQ7CIBhE9z3FhFW7KlWXhUO4ckuBClF+Ap/RxHh30Xb3JvMyY185FYKxq3rcCf0AIdF3wLwkVQye3pATbOIhMDjrr472JJvUtGKrr5QKNlBR2ybcGNaUKBcfm89P/MAQVWjVeWKo2l3E+/hB1ssG429tHv+fshu+lSYxzJYAAAA="`, ) })