🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { describe, expect, it } from 'vitest';
import { shouldSyncGroupRoute } from './groupRouteScope';
describe('shouldSyncGroupRoute', () => {
it('only syncs the active desktop tab', () => {
expect(shouldSyncGroupRoute(true, 'tab-a', 'tab-a')).toBe(true);
expect(shouldSyncGroupRoute(true, 'tab-b', 'tab-a')).toBe(false);
});
it('syncs web routes without a tab context', () => {
expect(shouldSyncGroupRoute(false, null, null)).toBe(true);
});
});