feat(sources): ZZZ's City Fund pass windows from Fandom

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas WintherandClaude Opus 5.5 committed 2026-10-16 06:22:05 +02:00
1 parent 9f8150fda7
commit a6a8efa661
7 files changed
+69 -1

No files matched your search

+3 -1
View File
@@ -111,7 +111,7 @@ describe("fandomtable canParse across every fixture", () => {
expect(files.length).toBeGreaterThan(20);
});
test("true on the two pass-history fixtures only", async () => {
test("true on the three pass-history fixtures only", async () => {
const accepted: string[] = [];
for (const f of files) {
if (fandomTableParser.canParse(await Bun.file(f).text())) accepted.push(f);
@@ -119,6 +119,7 @@ describe("fandomtable canParse across every fixture", () => {
expect(accepted).toEqual([
"fixtures/genshin/fandom-miliastra-pass-2026-10-16.html",
FIXTURE,
"fixtures/zzz/fandom-city-fund-2026-10-16.html",
]);
});
@@ -126,6 +127,7 @@ describe("fandomtable canParse across every fixture", () => {
for (const f of [
FIXTURE,
"fixtures/genshin/fandom-miliastra-pass-2026-10-16.html",
"fixtures/zzz/fandom-city-fund-2026-10-16.html",
]) {
const text = await Bun.file(f).text();
const claimants = PARSERS.filter((p) => p.canParse(text)).map((p) => p.id);
+2
View File
@@ -75,6 +75,8 @@ const CASES: Array<{ adapter: Adapter; fixture: string; now?: string }> = [
{ adapter: adapter("hsr-fandom-nameless-honor"), fixture: "fixtures/hsr/fandom-nameless-honor-2026-10-16", now: "2026-10-16T00:00:00.000Z" },
// Genshin's Miliastra Pass history (same reader).
{ adapter: adapter("genshin-fandom-miliastra-pass"), fixture: "fixtures/genshin/fandom-miliastra-pass-2026-10-16", now: "2026-10-16T00:00:00.000Z" },
// ZZZ's New Eridu City Fund history (same reader).
{ adapter: adapter("zzz-fandom-city-fund"), fixture: "fixtures/zzz/fandom-city-fund-2026-10-16", now: "2026-10-16T00:00:00.000Z" },
];
async function runAdapter(adapter: Adapter, fixture: string, now: string = NOW) {