mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 09:54:14 +00:00
fix(ci): repair mobile tests and lint diagnostics
Restore the saved-list filter import and test the actual sheet backdrop. Remove unsafe fixture assertions and apply formatting reported by CI. Reuse the current lint results and compare base files in sequence so warning diagnostics can finish without exhausting the heap.
This commit is contained in:
@@ -135,7 +135,9 @@ describe('prepareForOffline — selected trip', () => {
|
||||
expect(list).not.toHaveBeenCalled();
|
||||
expect(await offlineDb.trips.get(other.id)).toBeDefined();
|
||||
expect(await offlineDb.trips.get(trip.id)).toBeDefined();
|
||||
expect(await offlineDb.blobCache.get(bundle.files[0]!.url!)).toBeDefined();
|
||||
const fileUrl = bundle.files[0]?.url;
|
||||
if (!fileUrl) throw new Error('Expected a file URL in the trip bundle');
|
||||
expect(await offlineDb.blobCache.get(fileUrl)).toBeDefined();
|
||||
expect(getOfflinePrefs().pinnedTripIds).toEqual([trip.id]);
|
||||
expect(getOfflinePrefs().disabledTripIds).not.toContain(trip.id);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user