profileShare

rasmusjy / profileshare

Read-only snapshot

No repository description.

main default branch 54 files Expires Sep 13, 2026, 9:06 AM
repo-navigation.test.js 564 bytes
1 import { afterEach, describe, expect, it } from "vitest";
2 import { createShare, makeHarness } from "./helpers.js";
3
4 describe("repository navigation", () => {
5 let harness;
6 afterEach(() => harness.close());
7
8 it("links each selected repository from the profile", async () => {
9 harness = makeHarness();
10 const { id } = await createShare(harness);
11 const page = await harness.agent.get(`/s/${id}`).expect(200);
12 expect(page.text).toContain(`/s/${id}/repositories/101`);
13 await harness.agent.get(`/s/${id}/repositories/101`).expect(200);
14 });
15 });
16