Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 0a4405df62a8327bd2666a9c49bc4286088cd35b
parent fe819bb9e450462fc7bbc77d69f2af2fd9823cbd
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon,  2 Nov 2026 07:15:44 -0500

umtool e2e: import-capture reads its own last create-channel and import-page asks

The stub's request log is the whole run's; case-stages.spec (earlier in the order) now asks
create-channel and import-page too, and `find` picked its asks. `findLast` picks this spec's.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/e2e/import-capture.spec.ts | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/umtool/e2e/import-capture.spec.ts b/umtool/e2e/import-capture.spec.ts @@ -88,7 +88,8 @@ test("a page citation's capture imported as a page record, then cited as one, th // What crossed the wire: the channel scoped on the page's host, the capture. const asked = JSON.parse(readFileSync(path.join(FIXTURE, "editor-stub.requests.json"), "utf8")) as { path: string; body?: Record<string, unknown> }[]; - const create = asked.find((r) => r.path === "/api/ops/create-channel"); + // The LAST ask of each: the stub's log is the whole run's, and an earlier spec (case-stages) asks both too. + const create = asked.findLast((r) => r.path === "/api/ops/create-channel"); expect(create?.body).toMatchObject({ fields: { name: "Blog example pages", url: "https://web.archive.org/web/*/blog.example/*" } }); - expect(asked.find((r) => r.path === "/api/ops/import-page")?.body).toEqual({ slug: SLUG, url: ARCHIVE }); + expect(asked.findLast((r) => r.path === "/api/ops/import-page")?.body).toEqual({ slug: SLUG, url: ARCHIVE }); });