/**
 * Unit tests for Droid adapter argument building.
 */
import { describe, it, expect } from 'bun:test';
import { DroidAdapter } from '../../../src/targets/droid-adapter';

describe('DroidAdapter.buildArgs', () => {
  it('passes user args without model injection for valid profile names', () => {
    const adapter = new DroidAdapter();
    expect(adapter.buildArgs('gemini_01', ['--help'])).toEqual(['--help']);
  });

  it('rejects unsafe profile names', () => {
    const adapter = new DroidAdapter();
    expect(() => adapter.buildArgs('bad profile', [])).toThrow(/Invalid profile name/);
  });
});
