Files

19 lines
760 B
TypeScript
Raw Permalink Normal View History

import { describe, expect, it } from 'vitest'
import { Context } from '@deepseek-ai/cordis'
import * as SidebarInvariant from '@deepseek-ai/dsh-client-ui-sidebar/invariant'
2026-08-13 00:36:22 +08:00
import InvariantRegistry from '@deepseek-ai/dsh-invariants'
describe('invariant companion', () => {
it('registers under the package name with an empty installer', async () => {
const ctx = new Context()
2026-08-13 00:36:22 +08:00
await ctx.plugin(InvariantRegistry, { enabled: true })
await expect(ctx.plugin(SidebarInvariant).await()).resolves.toBeDefined()
})
it('node-half apply is a no-op host placeholder', async () => {
const { apply } = await import('@deepseek-ai/dsh-client-ui-sidebar')
apply()
expect(true).toBe(true) // reaching here without throw is the contract
})
})