UNPKG

@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.

19 lines (14 loc) 517 B
import { GlobalState, initialState } from '@/store/global/initialState'; import { merge } from '@/utils/merge'; import { globalGeneralSelectors } from './general'; describe('settingsSelectors', () => { describe('currentLanguage', () => { it('should return the correct language setting', () => { const s: GlobalState = merge(initialState, { status: { language: 'fr' }, }); const result = globalGeneralSelectors.currentLanguage(s); expect(result).toBe('fr'); }); }); });