fix: harden delivery accounting and history

This commit is contained in:
Leon Tonhäuser committed 2026-08-10 13:44:04 +02:00
1 parent 8871e4794a
commit 510fde7afa
13 files changed
+728 -88

No files matched your search

+6
View File
@@ -197,6 +197,7 @@ test("normalizes and bounds history pagination before the scoped repository quer
page: HISTORY_MAX_PAGE,
pageSize: 20,
hasNext: false,
attemptPageSize: 25,
}),
};
const history = createDownloadHistoryService({ repository });
@@ -204,11 +205,16 @@ test("normalizes and bounds history pagination before the scoped repository quer
await history.listEditorialUsageHistory(
"11111111-1111-4111-8111-111111111111",
"999999999999999999999999",
"1786314600000000.22222222-2222-4222-8222-222222222222",
);
expect(repository.listEditorialUsageHistory).toHaveBeenCalledWith(
"11111111-1111-4111-8111-111111111111",
HISTORY_MAX_PAGE,
{
authorizedAtMicros: "1786314600000000",
downloadId: "22222222-2222-4222-8222-222222222222",
},
);
});