Browse Source

test(api-gateway): repair CI fixtures

imccyu 1 tháng trước cách đây
mục cha
commit
ddd43ec371

+ 3 - 3
packages/api/gateway/tests/client.spec.ts

@@ -436,12 +436,12 @@ describe('Client TypeRT API', () => {
     const ctx = await bench(vi.fn<ConnectionHandle['rpc']['call']>())
     const dispose = await ctx.remote.$mount({ package: '@fixture/goals', descriptors: [directDescriptor()] })
     const namespace = ctx.get('remote.goals') as unknown as object
-    const getter = Object.getOwnPropertyDescriptor(namespace, 'create')?.get
+    const getWithdrawn = Object.getOwnPropertyDescriptor(namespace, 'create')?.get?.bind(namespace)
 
     await dispose()
 
-    expect(getter).toBeTypeOf('function')
-    const withdrawn = getter?.call(namespace) as (...args: unknown[]) => Promise<unknown>
+    expect(getWithdrawn).toBeTypeOf('function')
+    const withdrawn = getWithdrawn?.() as (...args: unknown[]) => Promise<unknown>
     expect(() => withdrawn('agent-1', { objective: 'ship' }))
       .toThrow('Remote method is no longer mounted')
   })

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
scripts/snapshots/translation-prompt-v4/request-response.expected.json


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác