Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
import { describe, expect, it } from 'vitest';
import { setNextTabActive, setPreviousTabActive, type TabOrderState } from './tab-utils';
describe('tab-utils', () => {
it('wraps next tab navigation from the last tab to the first tab', () => {
const state: TabOrderState = {
tabOrder: ['first', 'second', 'third'],
activeTabId: 'third',
};
setNextTabActive(state);
expect(state.activeTabId).toBe('first');
});
it('wraps previous tab navigation from the first tab to the last tab', () => {
const state: TabOrderState = {
tabOrder: ['first', 'second', 'third'],
activeTabId: 'first',
};
setPreviousTabActive(state);
expect(state.activeTabId).toBe('third');
});
});