Merge pull request #2736 from PR0M3TH3AN/update-watch-history-test-items-15094903720553574923

Update watch history test to use aggregated items
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-26 13:04:27 -05:00
commit 19d3e0dfbd
1 file changed
+1 -3
+1 -3
View File
@@ -1591,9 +1591,7 @@ async function testWatchHistoryServiceIntegration() {
reason: "integration",
});
assert.ok(snapshotResult.ok, "snapshot should publish queued pointers");
// snapshotResult now contains { items: flatItems, results: [monthResults...] }
// or items might be flatItems?
const snapshotItems = snapshotResult.items || (snapshotResult.results || []).flatMap(r => r.items || []);
const snapshotItems = snapshotResult.items || [];
// Check if item exists first
const snapshotItem = snapshotItems.find(