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.

615 B
Raw Blame
import { expect, it } from 'vitest';
import { spreadsheetCommentAnchor } from './spreadsheet-comments';

it('reads only typed spreadsheet message anchors', () => {
  const anchor = { sheetId: 'sheet-1', sheetName: 'Budget', range: 'B4:C9' };
  expect(spreadsheetCommentAnchor({ type: 'spreadsheet', ...anchor })).toEqual(
    anchor
  );
  for (const value of [
    null,
    { spreadsheet: anchor },
    { type: 'markdown' },
    { type: 'spreadsheet', ...anchor, range: 'A0' },
    { type: 'spreadsheet', ...anchor, range: 'A1:B2:C3' },
  ]) {
    expect(spreadsheetCommentAnchor(value)).toBeUndefined();
  }
});