2026-08-07 16:38:54 +08:00
|
|
|
import { describe, expect, it } from 'vitest'
|
2026-08-10 22:04:06 +08:00
|
|
|
import { Context } from '@deepseek-ai/cordis'
|
2026-08-13 00:36:22 +08:00
|
|
|
import InvariantRegistry from '@deepseek-ai/dsh-invariants'
|
|
|
|
|
import * as UserIdInvariant from '@deepseek-ai/dsh-anonymous-user-id/invariant'
|
2026-08-07 16:38:54 +08:00
|
|
|
|
|
|
|
|
describe('invariant companion', () => {
|
|
|
|
|
it('registers the package ownership with an empty installer', async () => {
|
|
|
|
|
const ctx = new Context()
|
2026-08-13 00:36:22 +08:00
|
|
|
await ctx.plugin(InvariantRegistry, { enabled: true })
|
2026-08-07 16:38:54 +08:00
|
|
|
await expect(ctx.plugin(UserIdInvariant).await()).resolves.toBeDefined()
|
|
|
|
|
})
|
|
|
|
|
})
|