Trimmed the documentation added by the template sync and the events test fix in the Website service.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c1a391b9f6
commit
06953a1be0
2 files changed
+3
-6
No files matched your search
@@ -41,7 +41,7 @@ if (listingForm) {
|
|||||||
apply();
|
apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Elements tagged `data-view-event` are reported the first time they are fully on screen, when the tracker is present.
|
// Reports each `data-view-event` element the first time it is fully on screen.
|
||||||
(() => {
|
(() => {
|
||||||
const elements = document.querySelectorAll("[data-view-event]");
|
const elements = document.querySelectorAll("[data-view-event]");
|
||||||
|
|
||||||
|
|||||||
+2
-5
@@ -246,10 +246,7 @@ private extension AccountAndCollectingControllerTests {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Runs the body against the session, catalogue, account, and collecting routes, over a migrated, seeded in-memory database.
|
/// Runs the body against the session, catalogue, account, and collecting routes, over a migrated, seeded in-memory database, judging events by `now`.
|
||||||
/// - Parameters:
|
|
||||||
/// - now: the clock the collecting repository judges upcoming events by; the system's by default.
|
|
||||||
/// - body: the requests to run against the app.
|
|
||||||
func withApp(
|
func withApp(
|
||||||
now: @escaping @Sendable () -> Date = { .init() },
|
now: @escaping @Sendable () -> Date = { .init() },
|
||||||
_ body: @escaping @Sendable (any TestClientProtocol) async throws -> Void
|
_ body: @escaping @Sendable (any TestClientProtocol) async throws -> Void
|
||||||
@@ -316,7 +313,7 @@ extension AccountAndCollectingControllerTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
func `serves the events, and narrows a search to the copies to pick up at one`() async throws {
|
func `serves the events, and narrows a search to the copies to pick up at one`() async throws {
|
||||||
// Noon on 22 September 2026 in Amsterdam: every demo con is still to come.
|
// 22 September 2026: every demo con is still to come.
|
||||||
try await withApp(now: { Date(timeIntervalSince1970: 1_790_071_200) }) { client in
|
try await withApp(now: { Date(timeIntervalSince1970: 1_790_071_200) }) { client in
|
||||||
try await client.execute(uri: "/events", method: .get) { response in
|
try await client.execute(uri: "/events", method: .get) { response in
|
||||||
let body = String(buffer: response.body)
|
let body = String(buffer: response.body)
|
||||||
|
|||||||
Reference in new issue
Block a user