/**
 * @license
 * Copyright 2026 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */

import { describe, it, expect } from 'vitest';
import { renderOperationalGuidelines } from './snippets.js';

describe('renderOperationalGuidelines - memoryManagerEnabled', () => {
  const baseOptions = {
    interactive: true,
    interactiveShellEnabled: false,
    topicUpdateNarration: false,
    memoryManagerEnabled: false,
  };

  it('should include standard memory tool guidance when memoryManagerEnabled is false', () => {
    const result = renderOperationalGuidelines(baseOptions);
    expect(result).toContain('save_memory');
    expect(result).toContain('persistent user-related information');
    expect(result).not.toContain('subagent');
  });

  it('should include subagent memory guidance when memoryManagerEnabled is true', () => {
    const result = renderOperationalGuidelines({
      ...baseOptions,
      memoryManagerEnabled: true,
    });
    expect(result).toContain('save_memory');
    expect(result).toContain('subagent');
    expect(result).not.toContain('persistent user-related information');
  });
});
