import { describe, it, expect } from 'vitest';
import { formatMemoryBlock } from '../prompt.js';

describe('formatMemoryBlock', () => {
  it('wraps entries in boocode-memory tags', () => {
    const block = formatMemoryBlock(['Use pnpm', 'Tests in vitest']);
    expect(block).toContain('<boocode-memory>');
    expect(block).toContain('Use pnpm');
    expect(block).toContain('</boocode-memory>');
  });

  it('returns empty string for no entries', () => {
    expect(formatMemoryBlock([])).toBe('');
  });
});
