Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

790 B
Raw Blame
import { describe, expect, it } from 'vitest';

import { heteroAgentSupportsImageInput } from './imageInput';

describe('heteroAgentSupportsImageInput', () => {
  it.each(['antigravity', 'claude-code', 'codex', 'copilot', 'grok-build', 'opencode'])(
    'accepts images for %s',
    (type) => {
      expect(heteroAgentSupportsImageInput(type)).toBe(true);
    },
  );

  it.each(['cursor', 'droid', 'devin', 'trae', 'deepseek-harness', 'openclaw', 'hermes'])(
    'rejects images for text-only %s',
    (type) => {
      expect(heteroAgentSupportsImageInput(type)).toBe(false);
    },
  );

  it('rejects unknown or missing types', () => {
    expect(heteroAgentSupportsImageInput('some-new-agent')).toBe(false);
    expect(heteroAgentSupportsImageInput(undefined)).toBe(false);
  });
});