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.

602 B
Raw Blame
import { describe, expect, it, vi } from 'vitest';
import { isSpreadsheetEnabledForCurrentUser } from './spreadsheet-access';

const state = vi.hoisted(() => ({
  enabled: true,
}));
vi.mock('@core/constant/featureFlags', () => ({
  enableSpreadsheets: {},
  isFeatureEnabled: () => state.enabled,
}));
describe('imperative spreadsheet rollout guard', () => {
  it('follows the PostHog decision without a separate email restriction', () => {
    expect(isSpreadsheetEnabledForCurrentUser()).toBe(true);
    state.enabled = false;
    expect(isSpreadsheetEnabledForCurrentUser()).toBe(false);
  });
});