| 1234567891011121314151617181920212223 |
- import { describe, expect, it } from 'vitest'
- import { Context } from 'cordis'
- import * as ModelsInvariant from '@deepseek-ai/dsh-client-ui-models/invariant'
- import InvariantService from '@deepseek-ai/dsh-invariants'
- import { ModelsSection } from '../src/client/ModelsSection.tsx'
- describe('invariant companion', () => {
- it('registers under the package name with an empty installer', async () => {
- const ctx = new Context()
- await ctx.plugin(InvariantService, { enabled: true })
- await expect(ctx.plugin(ModelsInvariant).await()).resolves.toBeDefined()
- })
- it('node-half apply is a no-op host placeholder', async () => {
- const { apply } = await import('@deepseek-ai/dsh-client-ui-models')
- apply()
- expect(true).toBe(true) // reaching here without throw is the contract
- })
- it('renders null until the shell injects the section dependencies', () => {
- expect(ModelsSection({})).toBeNull()
- })
- })
|