import { describe, expect, it } from 'vitest';
import { BrandVoiceSourceError, uploadToBrandVoiceSample } from '../../ai/brand-voice-sources.js';
describe('brand-voice-sources', () => {
    it('converts uploads into analyzer samples', () => {
        const sample = uploadToBrandVoiceSample('about.md', '# About us\nWe help teams ship faster.');
        expect(sample.collection).toBe('upload');
        expect(sample.title).toBe('about.md');
        expect(sample.text).toContain('ship faster');
    });
    it('rejects empty uploads', () => {
        expect(() => uploadToBrandVoiceSample('empty.txt', '   ')).toThrow(BrandVoiceSourceError);
    });
});
//# sourceMappingURL=brand-voice-sources.test.js.map