|
|
|
@ -137,13 +137,14 @@ describe('GroupSyncService', () => {
|
|
|
|
|
|
|
|
|
|
|
|
await GroupSyncService.syncGroups();
|
|
|
|
await GroupSyncService.syncGroups();
|
|
|
|
const group = testDb.query('SELECT * FROM groups WHERE id = ?').get('old-group');
|
|
|
|
const group = testDb.query('SELECT * FROM groups WHERE id = ?').get('old-group');
|
|
|
|
expect(group).toEqual({
|
|
|
|
expect(group).toEqual(expect.objectContaining({
|
|
|
|
id: 'old-group',
|
|
|
|
id: 'old-group',
|
|
|
|
community_id: 'test-community',
|
|
|
|
community_id: 'test-community',
|
|
|
|
name: 'Old Group',
|
|
|
|
name: 'Old Group',
|
|
|
|
active: 0,
|
|
|
|
active: 0,
|
|
|
|
last_verified: expect.any(String)
|
|
|
|
last_verified: expect.any(String),
|
|
|
|
});
|
|
|
|
onboarding_prompted_at: null
|
|
|
|
|
|
|
|
}));
|
|
|
|
expect(group.last_verified).not.toBe('2023-01-01'); // Should be updated
|
|
|
|
expect(group.last_verified).not.toBe('2023-01-01'); // Should be updated
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|