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.

498 B
Raw Blame
import { expect, it } from 'vitest';
import { formsKeys, myResponseKeyOf } from './keys';

it('names one form’s own-response queries, for any viewer, and no other form’s', () => {
  const prefix = myResponseKeyOf('form-1');
  const mine = formsKeys.mine('form-1', 'macro|[email protected]').queryKey;
  const other = formsKeys.mine('form-2', 'macro|[email protected]').queryKey;
  expect(mine.slice(0, prefix.length)).toEqual(prefix);
  expect(other.slice(0, prefix.length)).not.toEqual(prefix);
});