Skip to content

VoiceStudio is the open-source, fully-local ElevenLabs alternative — voice cloning, voice design, video dubbing, dictation, transcription & audiobook creation in 646 languages.

484 B
Raw Blame
import { describe, expect, it } from 'vitest';
import { modelNotDownloadedPayload } from '../utils/modelNotDownloaded';

describe('modelNotDownloadedPayload', () => {
  it('owns only the typed self-service 409', () => {
    const payload = { error: 'model_not_downloaded', target_label: 'this device' };
    expect(modelNotDownloadedPayload({ status: 409, detail: payload })).toBe(payload);
    expect(modelNotDownloadedPayload({ status: 500, detail: 'boom' })).toBeNull();
  });
});