import { describe, expect, it } from 'vitest'; import { readFileSync } from 'node:fs'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; import { runFixtureSuite } from '@rareindex/connectors/testing'; import { localMeta } from '../_lib/local-meta.js'; import { parseUsDate } from '../_g7-auctions-na-lib/index.js'; import createConnector, { doyleCategory, parseAuctionHeaderDate, parsePastAuctions, parseResultsPage } from './index.js'; const dir = path.dirname(fileURLToPath(import.meta.url)); const meta = localMeta(JSON.parse(readFileSync(path.join(dir, 'meta.json'), 'utf8'))); const connector = createConnector(meta); // Real fragments of https://www.doyle.com/past-auctions/ (captured 2026-09-08): a live sale ("Date:") and an online sale ("Ends:"). const CALENDAR = `
`; // Real fragment of https://www.doyle.com/auction/search/?au=9180 (page 1 of 5): a sold lot and an unsold lot, plus the pager. const RESULTS = ` Lot 6
A complete set of the first Aldine edition of Livy
Property sold to benefit Albertus Magnus High School
Estimated at $6,000 - $9,000