Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
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.');
});
});