加入插件及调用上下文 #1

Merged
tone merged 17 commits from dev into main 2025-12-02 15:48:35 +08:00
Showing only changes of commit 3a4a54d37c - Show all commits

View File

@@ -33,8 +33,11 @@ describe('Rpc disconnected test', () => {
errorCode: RPCErrorCode.CONNECTION_DISCONNECTED
})
);
await expect(callPromise).rejects.toBeInstanceOf(RPCError);
await expect(callPromise).rejects
.toHaveProperty('errorCode', RPCErrorCode.CONNECTION_DISCONNECTED);
await expect(callPromise).rejects.toMatchObject(
expect.objectContaining({
constructor: RPCError,
errorCode: RPCErrorCode.CONNECTION_DISCONNECTED
})
);
})
})