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.

866 B
Raw Blame
import { describe, expect, it } from 'vitest';
import { isShareableEntityType } from '../shareable-entity';

describe('isShareableEntityType', () => {
  it('accepts the entity types the share modal can open', () => {
    expect(isShareableEntityType('document')).toBe(true);
    expect(isShareableEntityType('chat')).toBe(true);
    expect(isShareableEntityType('project')).toBe(true);
    expect(isShareableEntityType('email')).toBe(true);
    expect(isShareableEntityType('agent_session')).toBe(true);
    expect(isShareableEntityType('form')).toBe(true);
    expect(isShareableEntityType('call')).toBe(true);
    expect(isShareableEntityType('database')).toBe(true);
  });

  it('rejects entity types with no share flow', () => {
    expect(isShareableEntityType('channel')).toBe(false);
    expect(isShareableEntityType('calendar_event')).toBe(false);
  });
});