2026-07-26 01:10:23 +08:00
|
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
|
import { Context } from 'cordis'
|
2026-07-26 02:51:36 +08:00
|
|
|
import * as ModelsInvariant from '@deepseek-ai/dsh-client-ui-models/invariant'
|
2026-07-26 01:10:23 +08:00
|
|
|
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 () => {
|
2026-07-26 02:51:36 +08:00
|
|
|
const { apply } = await import('@deepseek-ai/dsh-client-ui-models')
|
2026-07-26 01:10:23 +08:00
|
|
|
apply()
|
|
|
|
|
expect(true).toBe(true) // reaching here without throw is the contract
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
it('the section content column is intentionally empty this phase', () => {
|
|
|
|
|
expect(ModelsSection()).toBeNull()
|
|
|
|
|
})
|
|
|
|
|
})
|