Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/unit/offline-support/offline_support_api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2289,7 +2289,8 @@ describe('OfflineDBSyncManager', () => {

it('resets DB if last sync was more than 30 days ago', async () => {
const oldDate = new Date();
oldDate.setDate(oldDate.getDate() - 31);
// Use 32 days - ensures test runs even on daylight savings time changes
oldDate.setDate(oldDate.getDate() - 32);
getLastSyncedAtSpy.mockResolvedValueOnce(oldDate.toString());

await (syncManager as any).sync();
Expand Down
Loading