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.

717 B
Raw Blame
import { describe, expect, it } from 'vitest';
import { isProgramParticipant } from '../is-program-participant';

describe('isProgramParticipant', () => {
  it('recognizes program participants by their LiveKit attribute', () => {
    expect(isProgramParticipant({ 'macro.program': 'agent' })).toBe(true);
    expect(isProgramParticipant({ 'macro.program': 'api_key' })).toBe(true);
    expect(isProgramParticipant({ 'macro.program': 'bot' })).toBe(true);
  });

  it('leaves people without a program attribute unmarked', () => {
    expect(isProgramParticipant(undefined)).toBe(false);
    expect(isProgramParticipant({})).toBe(false);
    expect(isProgramParticipant({ 'macro.program': '' })).toBe(false);
  });
});