13 lines
500 B
TypeScript
13 lines
500 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { Context } from 'cordis'
|
|
import InvariantService from '@deepseek-ai/dsh-invariants'
|
|
import * as UserIdInvariant from '@deepseek-ai/dsh-user-id/invariant'
|
|
|
|
describe('invariant companion', () => {
|
|
it('registers the package ownership with an empty installer', async () => {
|
|
const ctx = new Context()
|
|
await ctx.plugin(InvariantService, { enabled: true })
|
|
await expect(ctx.plugin(UserIdInvariant).await()).resolves.toBeDefined()
|
|
})
|
|
})
|