import { describe, expect, it } from 'vitest';

import { shouldCleanupGeneratedOutboundFile } from './outbound-media.js';

describe('TTS outbound file cleanup', () => {
  it('matches generated tts outbound files', () => {
    expect(
      shouldCleanupGeneratedOutboundFile('/home/john/nanoclaw/groups/general/.nanoclaw-outbound/tts/speech-123/voice.mp3'),
    ).toBe(true);
  });

  it('does not match normal workspace files', () => {
    expect(
      shouldCleanupGeneratedOutboundFile('/home/john/nanoclaw/groups/general/report.pdf'),
    ).toBe(false);
  });
});
