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.

631 B
Raw Blame
import { beforeEach, describe, expect, it } from 'vitest';
import {
  nativeUpdateRequired,
  requireNativeUpdate,
  resetNativeUpdateRequiredForTests,
} from './nativeUpdateRequired';

describe('requireNativeUpdate', () => {
  beforeEach(() => {
    resetNativeUpdateRequiredForTests();
  });

  it('keeps the first reason, so the request is shown once', () => {
    expect(nativeUpdateRequired()).toBeUndefined();

    requireNativeUpdate('Update Macro to use the local cache.');
    requireNativeUpdate('Update Macro to sync drafts.');

    expect(nativeUpdateRequired()).toBe('Update Macro to use the local cache.');
  });
});