@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
15 lines (11 loc) • 436 B
text/typescript
import { describe, expect } from 'vitest';
import input from './fixtures/input.json';
import outputData from './fixtures/output.json';
import { migrateSettingsToUser } from './index';
import { V4Settings } from './type';
describe('migrateSettingsFromLocalStorage', () => {
it('from localStorage to indexedDB', () => {
const output = migrateSettingsToUser(input as V4Settings);
expect(output).toEqual(outputData);
});
});