invariant.spec.ts 749 B

123456789101112131415161718
  1. import { describe, expect, it } from 'vitest'
  2. import { Context } from 'cordis'
  3. import * as SettingsInvariant from '@deepseek-ai/dsh-client-ui-settings/invariant'
  4. import InvariantService from '@deepseek-ai/dsh-invariants'
  5. describe('invariant companion', () => {
  6. it('registers under the package name with an empty installer', async () => {
  7. const ctx = new Context()
  8. await ctx.plugin(InvariantService, { enabled: true })
  9. await expect(ctx.plugin(SettingsInvariant).await()).resolves.toBeDefined()
  10. })
  11. it('node-half apply is a no-op host placeholder', async () => {
  12. const { apply } = await import('@deepseek-ai/dsh-client-ui-settings')
  13. apply()
  14. expect(true).toBe(true) // reaching here without throw is the contract
  15. })
  16. })