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.

371 B
Raw Blame
import { defaultShouldRetryThisError } from 'ai-fallback';
import { describe, expect, it } from 'vitest';

describe('ai-fallback patch', () => {
  it('falls back when a provider requires payment', () => {
    const error = Object.assign(new Error('Payment required'), {
      statusCode: 402,
    });

    expect(defaultShouldRetryThisError(error)).toBe(true);
  });
});