add eof new line missing (#6673)
This commit is contained in:
parent
f33c2c205a
commit
82d29e7a7d
@ -250,4 +250,4 @@ describe('ConversationalExtension', () => {
|
||||
|
||||
expect(retrievedAssistant.modelId).toBe('')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -131,4 +131,4 @@ describe('LocalOAIEngine', () => {
|
||||
expect(engine.loadedModel).toBeUndefined()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -96,4 +96,4 @@ describe('MCPExtension', () => {
|
||||
expect(healthy).toBe(true)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -25,4 +25,4 @@ export abstract class MCPExtension extends BaseExtension implements MCPInterface
|
||||
* @returns A React component or null if no custom component is provided
|
||||
*/
|
||||
getToolComponent?(): ComponentType<MCPToolComponentProps> | null
|
||||
}
|
||||
}
|
||||
|
||||
@ -131,4 +131,4 @@ describe('ModelManager', () => {
|
||||
expect(modelManager.models.get('model-2')).toEqual(model2)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -16,4 +16,4 @@ if (!window.core) {
|
||||
})
|
||||
}
|
||||
|
||||
// Add any other global mocks needed for core tests
|
||||
// Add any other global mocks needed for core tests
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
export * from './mcpEntity'
|
||||
export * from './mcpInterface'
|
||||
export * from './mcpInterface'
|
||||
|
||||
@ -35,4 +35,4 @@ export interface MCPToolComponentProps {
|
||||
|
||||
/** Function to toggle a tool's enabled/disabled state */
|
||||
onToolToggle: (toolName: string, enabled: boolean) => void
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,4 +29,4 @@ export interface MCPInterface {
|
||||
* Check if MCP service is healthy
|
||||
*/
|
||||
isHealthy(): Promise<boolean>
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,4 +14,4 @@ export const DEFAULT_ASSISTANT = {
|
||||
name: 'Jan',
|
||||
avatar: '👋',
|
||||
created_at: 1747029866.542,
|
||||
}
|
||||
}
|
||||
|
||||
@ -268,4 +268,4 @@ export class JanApiClient {
|
||||
}
|
||||
}
|
||||
|
||||
export const janApiClient = JanApiClient.getInstance()
|
||||
export const janApiClient = JanApiClient.getInstance()
|
||||
|
||||
@ -1 +1 @@
|
||||
export { default } from './provider'
|
||||
export { default } from './provider'
|
||||
|
||||
@ -92,4 +92,4 @@ export const janProviderStore = {
|
||||
useJanProviderStore.getState().clearError(),
|
||||
reset: () =>
|
||||
useJanProviderStore.getState().reset(),
|
||||
}
|
||||
}
|
||||
|
||||
@ -51,4 +51,4 @@ export const WebSearchButton = ({
|
||||
<span className={`text-sm font-medium ${isEnabled ? 'text-accent' : ''}`}>Search</span>
|
||||
</button>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1 +1 @@
|
||||
export { WebSearchButton } from './WebSearchButton'
|
||||
export { WebSearchButton } from './WebSearchButton'
|
||||
|
||||
@ -242,4 +242,4 @@ export default class MCPExtensionWeb extends MCPExtension {
|
||||
getToolComponent(): ComponentType<MCPToolComponentProps> | null {
|
||||
return WebSearchButton
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -57,4 +57,4 @@ export class JanMCPOAuthProvider implements OAuthClientProvider {
|
||||
async codeVerifier(): Promise<string> {
|
||||
throw new Error('Code verifier not supported')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -47,4 +47,4 @@ export class ApiError extends Error {
|
||||
isServerError(): boolean {
|
||||
return this.status >= 500 && this.status < 600
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -38,4 +38,4 @@ export interface IndexedDBConfig {
|
||||
keyPath: string
|
||||
indexes?: { name: string; keyPath: string | string[]; unique?: boolean }[]
|
||||
}[]
|
||||
}
|
||||
}
|
||||
|
||||
2
extensions-web/src/types/global.d.ts
vendored
2
extensions-web/src/types/global.d.ts
vendored
@ -2,4 +2,4 @@ export {}
|
||||
|
||||
declare global {
|
||||
declare const JAN_API_BASE: string
|
||||
}
|
||||
}
|
||||
|
||||
2
extensions-web/src/vite-env.d.ts
vendored
2
extensions-web/src/vite-env.d.ts
vendored
@ -1 +1 @@
|
||||
/// <reference types="vite/client" />
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
@ -16,4 +16,4 @@ export default defineConfig({
|
||||
define: {
|
||||
JAN_API_BASE: JSON.stringify(process.env.JAN_API_BASE || 'https://api-dev.jan.ai/v1'),
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@ -49,4 +49,4 @@ describe('i18n module', () => {
|
||||
expect(i18nModule[exportName]).toBeDefined()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -76,4 +76,4 @@ describe('main.tsx', () => {
|
||||
await import('../main')
|
||||
}).rejects.toThrow()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -416,4 +416,4 @@ describe('Dialog Components', () => {
|
||||
expect(screen.getByText('Dialog description')).toHaveAttribute('data-slot', 'dialog-description')
|
||||
expect(screen.getByText('Footer button').closest('div')).toHaveAttribute('data-slot', 'dialog-footer')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -853,4 +853,4 @@ describe('DropdownMenu Components', () => {
|
||||
expect(handleItemClick).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -530,4 +530,4 @@ describe('DropDrawer Component', () => {
|
||||
expect(trigger).toHaveAttribute('aria-haspopup', 'dialog')
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -165,4 +165,4 @@ describe('HoverCard Components', () => {
|
||||
expect(screen.getByText('Hover content')).toBeDefined()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -93,4 +93,4 @@ describe('Input', () => {
|
||||
fireEvent.blur(input)
|
||||
expect(handleBlur).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -436,4 +436,4 @@ describe('Popover Components', () => {
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -84,4 +84,4 @@ describe('Progress', () => {
|
||||
// For values over 100, the transform should be positive
|
||||
expect(indicator?.style.transform).toContain('translateX(--50%)')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -59,4 +59,4 @@ describe('RadioGroup', () => {
|
||||
expect(screen.getByLabelText('HTTP')).toBeChecked()
|
||||
expect(screen.getByLabelText('SSE')).not.toBeChecked()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -260,4 +260,4 @@ describe('Sheet Components', () => {
|
||||
expect(screen.getByText('Main Content')).toBeInTheDocument()
|
||||
expect(screen.getByText('Close')).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -61,4 +61,4 @@ describe('Skeleton', () => {
|
||||
expect(skeleton).toHaveClass('w-full')
|
||||
expect(skeleton).toHaveClass('bg-red-500')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -190,4 +190,4 @@ describe('Slider', () => {
|
||||
expect(thumb).toHaveClass('border-accent', 'bg-main-view', 'rounded-full')
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -90,4 +90,4 @@ describe('Toaster Component', () => {
|
||||
expect(toaster).toHaveAttribute('data-rich-colors', 'true')
|
||||
expect(toaster).toHaveAttribute('data-close-button', 'true')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -189,4 +189,4 @@ describe('Switch', () => {
|
||||
const switchElement = document.querySelector('[data-slot="switch"]')
|
||||
expect(switchElement).toHaveClass('data-[state=unchecked]:bg-main-view-fg/20')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -113,4 +113,4 @@ describe('Textarea', () => {
|
||||
const textarea = screen.getByRole('textbox')
|
||||
expect(textarea).toHaveAttribute('cols', '50')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -111,4 +111,4 @@ describe('Tooltip Components', () => {
|
||||
expect(screen.getByText('First')).toBeInTheDocument()
|
||||
expect(screen.getByText('Second')).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -39,4 +39,4 @@ const RadioGroupItem = React.forwardRef<
|
||||
})
|
||||
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName
|
||||
|
||||
export { RadioGroup, RadioGroupItem }
|
||||
export { RadioGroup, RadioGroupItem }
|
||||
|
||||
@ -33,4 +33,4 @@ describe('windows constants', () => {
|
||||
expect(value.length).toBeGreaterThan(0)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -3,4 +3,4 @@
|
||||
*/
|
||||
|
||||
export const TEMPORARY_CHAT_ID = 'temporary-chat'
|
||||
export const TEMPORARY_CHAT_QUERY_ID = 'temporary-chat'
|
||||
export const TEMPORARY_CHAT_QUERY_ID = 'temporary-chat'
|
||||
|
||||
@ -58,4 +58,4 @@ export const McpExtensionToolLoader = ({
|
||||
onToolToggle={handleToolToggle}
|
||||
/>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -121,4 +121,4 @@ describe('AvatarEmoji Component', () => {
|
||||
const img = screen.getByRole('img')
|
||||
expect(img).toHaveAttribute('alt', 'Custom avatar')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -36,4 +36,4 @@ describe('ChatInput Simple Tests', () => {
|
||||
const sendButton = screen.getByTestId('send-message-button')
|
||||
expect(sendButton).toHaveTextContent('Send')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -392,4 +392,4 @@ describe('ChatInput', () => {
|
||||
expect(() => renderWithRouter()).not.toThrow()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -274,4 +274,4 @@ describe('DropdownModelProvider - Display Name Integration', () => {
|
||||
// Both models are still visible in the dropdown, so we can't test for absence
|
||||
expect(screen.getAllByText('Short Name')).toHaveLength(2) // trigger + dropdown
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -181,4 +181,4 @@ describe('DialogEditModel - Basic Component Tests', () => {
|
||||
expect(mockUpdateProvider).toBeDefined()
|
||||
expect(mockSetProviders).toBeDefined()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -266,4 +266,4 @@ describe('LeftPanel', () => {
|
||||
const toggleButton = document.querySelector('svg.tabler-icon-layout-sidebar')
|
||||
expect(toggleButton).not.toBeNull()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -143,4 +143,4 @@ describe('SetupScreen', () => {
|
||||
const setupContent = screen.getByText('setup:welcome').closest('div')
|
||||
expect(setupContent).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -75,4 +75,4 @@ export function DeleteAssistantDialog({
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -77,4 +77,4 @@ export function FactoryResetDialog({
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -142,4 +142,4 @@ describe('useAnalytic', () => {
|
||||
expect(result.current.productAnalytic).toBe(false)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -201,4 +201,4 @@ describe('useAppState', () => {
|
||||
|
||||
expect(result.current.tokenSpeed).toBeUndefined()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -406,4 +406,4 @@ describe('useAppUpdater', () => {
|
||||
expect(mockEvents.emit).toHaveBeenCalledWith('onAppUpdateDownloadSuccess', {})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -285,4 +285,4 @@ describe('useAppearance', () => {
|
||||
expect(result.current.chatWidth).toBe('compact')
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -225,4 +225,4 @@ describe('useChat', () => {
|
||||
|
||||
expect(result.current).toBeDefined()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -171,4 +171,4 @@ describe('useClickOutside', () => {
|
||||
addEventListenerSpy.mockRestore()
|
||||
removeEventListenerSpy.mockRestore()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -147,4 +147,4 @@ describe('useCodeblock', () => {
|
||||
expect(result.current.codeBlockStyle).toBe('preserved-theme')
|
||||
expect(result.current.showLineNumbers).toBe(false)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -259,4 +259,4 @@ describe('useDownloadStore', () => {
|
||||
expect(result.current.localDownloadingModels.has('model-1')).toBe(true)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -468,4 +468,4 @@ describe('useKeyboardShortcut', () => {
|
||||
|
||||
expect(mockCallback).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -143,4 +143,4 @@ describe('useLeftPanel', () => {
|
||||
expect(result.current.open).toBe(true)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -154,4 +154,4 @@ describe('useLlamacppDevices', () => {
|
||||
expect(result.current.devices[1].activated).toBe(true)
|
||||
})
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
@ -663,4 +663,4 @@ describe('useLocalApiServer', () => {
|
||||
expect(result.current.serverPort).toBe(65535)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -474,4 +474,4 @@ describe('useMCPServers', () => {
|
||||
expect(result.current.deletedServerKeys).toContain('lifecycle-server')
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -316,4 +316,4 @@ describe('useSmallScreen', () => {
|
||||
|
||||
expect(mockMatchMedia).toHaveBeenCalledWith('(max-width: 768px)')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -392,4 +392,4 @@ describe('useMessages', () => {
|
||||
expect(result2.current.getMessages('thread1')).toEqual([testMessage])
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -311,4 +311,4 @@ describe('useContextSizeApproval', () => {
|
||||
expect(secondResult).toBe('context_shift')
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -179,4 +179,4 @@ describe('useModelProvider - displayName functionality', () => {
|
||||
expect(provider?.models[0].displayName).toBe('Custom Model Name')
|
||||
expect(provider?.models[0].id).toBe('test-model.gguf')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -98,4 +98,4 @@ describe('usePrompt', () => {
|
||||
expect(result.current.prompt).toBe(longText)
|
||||
expect(result.current.prompt.length).toBe(10000)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -99,4 +99,4 @@ describe('useProviderModels', () => {
|
||||
|
||||
expect(fetchModelsSpy).not.toHaveBeenCalled()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -320,4 +320,4 @@ describe('useProxyConfig', () => {
|
||||
expect(typeof result.current.setNoProxy).toBe('function')
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -359,4 +359,4 @@ describe('useReleaseNotes', () => {
|
||||
expect(result.current.error).toBe(null)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -186,4 +186,4 @@ describe('useTheme', () => {
|
||||
expect(result.current.isDark).toBe(false)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -440,4 +440,4 @@ describe('useToolApproval', () => {
|
||||
expect(result.current.isToolApproved('thread-1', 'tool-a')).toBe(true)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -417,4 +417,4 @@ describe('useToolAvailable', () => {
|
||||
expect(result.current.isToolDisabled('thread-1', 'tool-c')).toBe(true)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -179,4 +179,4 @@ describe('useTools', () => {
|
||||
expect(mockGetTools).toHaveBeenCalledTimes(1)
|
||||
expect(mockListen).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -214,4 +214,4 @@ describe('useVulkan', () => {
|
||||
expect(result.current.vulkanEnabled).toBe(false)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -50,4 +50,4 @@ export const useFavoriteModel = create<FavoriteModelState>()(
|
||||
storage: createJSONStorage(() => localStorage),
|
||||
}
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@ -52,4 +52,4 @@ export const initializeServiceHubStore = (serviceHub: ServiceHub) => {
|
||||
*/
|
||||
export const isServiceHubInitialized = (): boolean => {
|
||||
return useServiceStore.getState().serviceHub !== null
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,4 +4,4 @@ export { default } from '@/i18n/setup'
|
||||
// Re-export compatibility functions for existing code
|
||||
export { useTranslation } from '@/i18n/react-i18next-compat'
|
||||
export { useAppTranslation } from '@/i18n/hooks'
|
||||
export { TranslationProvider } from '@/i18n/TranslationContext'
|
||||
export { TranslationProvider } from '@/i18n/TranslationContext'
|
||||
|
||||
@ -43,4 +43,4 @@ export const TranslationProvider: React.FC<{ children: ReactNode }> = ({ childre
|
||||
)
|
||||
}
|
||||
|
||||
export default TranslationProvider
|
||||
export default TranslationProvider
|
||||
|
||||
@ -8,4 +8,4 @@ export const TranslationContext = createContext<{
|
||||
}>({
|
||||
t: (key: string) => key,
|
||||
i18n: i18next,
|
||||
})
|
||||
})
|
||||
|
||||
@ -2,4 +2,4 @@ import { useContext } from "react"
|
||||
import { TranslationContext } from "./context"
|
||||
|
||||
// Custom hook for easy translations
|
||||
export const useAppTranslation = () => useContext(TranslationContext)
|
||||
export const useAppTranslation = () => useContext(TranslationContext)
|
||||
|
||||
@ -5,4 +5,4 @@ export { default as i18n, loadTranslations } from './setup'
|
||||
export { TranslationProvider } from './TranslationContext'
|
||||
|
||||
// Export types
|
||||
export type { I18nInstance, TranslationResources } from './setup'
|
||||
export type { I18nInstance, TranslationResources } from './setup'
|
||||
|
||||
@ -31,4 +31,4 @@ export { default as i18n } from './setup'
|
||||
|
||||
// Re-export other utilities
|
||||
export { TranslationProvider } from './TranslationContext'
|
||||
export { useAppTranslation } from './hooks'
|
||||
export { useAppTranslation } from './hooks'
|
||||
|
||||
@ -153,4 +153,4 @@ export const loadTranslations = (): void => {
|
||||
// Initialize and export the i18n instance
|
||||
const i18n = initI18n()
|
||||
|
||||
export default i18n
|
||||
export default i18n
|
||||
|
||||
@ -187,4 +187,4 @@ describe('completion.ts', () => {
|
||||
expect(result.length).toBe(0)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -138,4 +138,4 @@ describe('extension.ts', () => {
|
||||
expect(invoke).toHaveBeenCalledWith('test_command', { param: 'value' })
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -14,4 +14,4 @@ export function trackEvent(
|
||||
}
|
||||
|
||||
window.gtag('event', eventName, parameters)
|
||||
}
|
||||
}
|
||||
|
||||
@ -67,4 +67,4 @@ export const PlatformFeatures: Record<PlatformFeature, boolean> = {
|
||||
|
||||
// Temporary chat mode - enabled for web only
|
||||
[PlatformFeature.TEMPORARY_CHAT]: !isPlatformTauri(),
|
||||
}
|
||||
}
|
||||
|
||||
@ -10,4 +10,4 @@ export * from './types'
|
||||
export * from './utils'
|
||||
|
||||
// Re-export components
|
||||
export * from './PlatformGuard'
|
||||
export * from './PlatformGuard'
|
||||
|
||||
@ -38,4 +38,4 @@ export const PlatformShortcuts: ShortcutMap = {
|
||||
key: '-',
|
||||
usePlatformMetaKey: true,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,4 +6,4 @@
|
||||
*/
|
||||
|
||||
export * from './types'
|
||||
export * from './const'
|
||||
export * from './const'
|
||||
|
||||
@ -20,4 +20,4 @@ export interface ShortcutSpec {
|
||||
metaKey?: boolean
|
||||
}
|
||||
|
||||
export type ShortcutMap = Record<ShortcutAction, ShortcutSpec>
|
||||
export type ShortcutMap = Record<ShortcutAction, ShortcutSpec>
|
||||
|
||||
@ -23,4 +23,4 @@ export function ServiceHubProvider({ children }: ServiceHubProviderProps) {
|
||||
}, [])
|
||||
|
||||
return <>{isReady && children}</>
|
||||
}
|
||||
}
|
||||
|
||||
@ -101,4 +101,4 @@ describe('DataProvider', () => {
|
||||
expect(screen.getByText('Test Child 1')).toBeInTheDocument()
|
||||
expect(screen.getByText('Test Child 2')).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -79,4 +79,4 @@ describe('ThemeProvider', () => {
|
||||
// Should be called on mount
|
||||
expect(useTheme).toHaveBeenCalled()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -304,4 +304,4 @@ describe('HuggingFace Repository Conversion', () => {
|
||||
expect(result.quants[0].file_size).toBe('1024.0 GB')
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -235,4 +235,4 @@ describe('Appearance Settings Route', () => {
|
||||
const settingsMenu = screen.getByTestId('settings-menu')
|
||||
expect(settingsMenu).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user