Selaa lähdekoodia

test(web): cover the ui-reference node half

creatixchu 1 kuukausi sitten
vanhempi
sitoutus
862132faca

+ 5 - 0
packages/client/ui-reference/tests/browser-plugin.client.spec.ts

@@ -13,6 +13,7 @@ import type {
 import type { FileReferenceCandidate } from '@deepseek-ai/dsh-file-reference/types'
 import type { SessionReferenceMentionCandidate } from '@deepseek-ai/dsh-session-reference/types'
 import { apply, inject } from '../src/client/index.ts'
+import { apply as nodeApply } from '../src/index.ts'
 
 const sid = (value: string): SessionId => value as SessionId
 const session: ClientSessionContext = { sessionId: sid('target') }
@@ -111,6 +112,10 @@ describe('apply', () => {
     expect(registered).toBeUndefined()
     await fiber.dispose()
   })
+
+  it('the node half applies without host-side behavior', () => {
+    expect(() => { nodeApply() }).not.toThrow()
+  })
 })
 
 describe('candidates', () => {