21 lines
628 B
TypeScript
21 lines
628 B
TypeScript
import { describe, expect, test } from "bun:test";
|
|
import { app } from "../samples/hello-world/index.ts";
|
|
|
|
/**
|
|
* The minimal blog deliberately has no application server components.
|
|
*/
|
|
describe("server components", () => {
|
|
test("renders the static blog shell", async () => {
|
|
const html = await (
|
|
await app.fetch(new Request("http://localhost/"))
|
|
).text();
|
|
expect(html).toContain("Test1");
|
|
});
|
|
|
|
test("does not ship a relation bridge for anchors", async () => {
|
|
const html = await (
|
|
await app.fetch(new Request("http://localhost/"))
|
|
).text();
|
|
expect(html).not.toContain("window.__muddleRelations");
|
|
});
|
|
});
|