Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions src/lib/landing.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { expect, test } from "bun:test";
import { fileURLToPath } from "node:url";
import { dev } from "astro";

test("the landing page preserves spaces around inline links and emphasis", async () => {
const server = await dev({
root: fileURLToPath(new URL("../../", import.meta.url)),
server: { host: "127.0.0.1", port: 0 },
logLevel: "silent",
});
try {
const response = await fetch(`http://127.0.0.1:${server.address.port}/`);
expect(response.status).toBe(200);
const paragraphs: string[] = [];
await new HTMLRewriter()
.on("main p", {
element() {
paragraphs.push("");
},
text({ text }) {
paragraphs[paragraphs.length - 1] += text;
},
})
.transform(response)
.text();
expect(paragraphs.map((text) => text.replace(/\s+/g, " ").trim())).toContain(
"Build first, argue later. MoQ is being standardized by the IETF as a new RFC. We ship moq-lite today: a forwards-compatible subset of moq-transport that works with any MoQ CDN.",
);
} finally {
await server.stop();
}
}, 30_000);
8 changes: 4 additions & 4 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ const useCases = [
<img src="/home/quic.svg" class="h-7 w-auto" alt="QUIC" />
</div>
<p class="text-[0.98rem] leading-relaxed text-slate-400">
<strong class="font-semibold text-white">Build first, argue later.</strong>
MoQ is being standardized by the <a class="green-link" href="https://datatracker.ietf.org/wg/moq/about/">IETF</a>
as a new RFC. We ship
<strong class="font-semibold text-white">Build first, argue later.</strong>{" "}
MoQ is being standardized by the <a class="green-link" href="https://datatracker.ietf.org/wg/moq/about/">IETF</a>{" "}
as a new RFC. We ship{" "}
<a class="green-link" href="https://doc.moq.dev/concept/layer/moq-lite">moq-lite</a> today: a forwards-compatible
subset of <a class="green-link" href="https://datatracker.ietf.org/doc/draft-ietf-moq-transport/">moq-transport</a>
subset of <a class="green-link" href="https://datatracker.ietf.org/doc/draft-ietf-moq-transport/">moq-transport</a>{" "}
that works with any MoQ CDN.
</p>
</div>
Expand Down
Loading