|
|
|
@ -151,8 +151,8 @@ describe('GroupSyncService', () => {
|
|
|
|
// Clear cache and add test groups
|
|
|
|
// Clear cache and add test groups
|
|
|
|
GroupSyncService.activeGroupsCache.clear();
|
|
|
|
GroupSyncService.activeGroupsCache.clear();
|
|
|
|
db.exec('DELETE FROM groups');
|
|
|
|
db.exec('DELETE FROM groups');
|
|
|
|
db.exec("INSERT INTO groups (id, name, active) VALUES ('active-group', 'Active Group', 1)");
|
|
|
|
db.exec("INSERT INTO groups (id, community_id, name, active) VALUES ('active-group', 'test-community', 'Active Group', 1)");
|
|
|
|
db.exec("INSERT INTO groups (id, name, active) VALUES ('inactive-group', 'Inactive Group', 0)");
|
|
|
|
db.exec("INSERT INTO groups (id, community_id, name, active) VALUES ('inactive-group', 'test-community', 'Inactive Group', 0)");
|
|
|
|
// Populate cache
|
|
|
|
// Populate cache
|
|
|
|
GroupSyncService['cacheActiveGroups']();
|
|
|
|
GroupSyncService['cacheActiveGroups']();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|