mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
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:
1 file changed
+1
-3
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user