Apply the accepted pre-release package, service, type, directory, and role renames as one repository-wide change.
24 lines
963 B
TypeScript
24 lines
963 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { Context } from '@deepseek-ai/cordis'
|
|
import * as ModelsInvariant from '@deepseek-ai/dsh-client-ui-settings-models/invariant'
|
|
import InvariantRegistry 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(InvariantRegistry, { 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-settings-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()
|
|
})
|
|
})
|