Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

589 B
Raw Blame
import { describe, expect, it } from 'vitest';
import { activeChannelsTab } from './utils';

describe('activeChannelsTab', () => {
  it('shows All for a stored Threads tab while the flag is off or loading', () => {
    expect(activeChannelsTab('threads', false)).toBe('browse');
  });

  it('shows Threads once the flag is on', () => {
    expect(activeChannelsTab('threads', true)).toBe('threads');
  });

  it('leaves the other tabs alone', () => {
    expect(activeChannelsTab('recents', false)).toBe('recents');
    expect(activeChannelsTab('browse', false)).toBe('browse');
  });
});