From 30f32171ca459763c60ab920bd9f1492474c10e8 Mon Sep 17 00:00:00 2001 From: bull Date: Sat, 4 Jan 2025 22:38:20 +0900 Subject: [PATCH] fix wrapped keys test issue760 --- .../wrapped-keys/src/lib/api/utils.spec.ts | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/packages/wrapped-keys/src/lib/api/utils.spec.ts b/packages/wrapped-keys/src/lib/api/utils.spec.ts index 3b529ff76..e008dfa75 100644 --- a/packages/wrapped-keys/src/lib/api/utils.spec.ts +++ b/packages/wrapped-keys/src/lib/api/utils.spec.ts @@ -87,19 +87,17 @@ describe('getPkpAccessControlCondition', () => { it('should correctly create the ACC', () => { const pkpAddress = '0xd1Af1AAC50aC837C873200D17b78664aFCde597C'; const acc = getPkpAccessControlCondition(pkpAddress); - expect(acc).toEqual([ - { - contractAddress: '', - standardContractType: '', - chain: CHAIN_ETHEREUM, - method: '', - parameters: [':userAddress'], - returnValueTest: { - comparator: '=', - value: pkpAddress, - }, + expect(acc).toEqual({ + contractAddress: '', + standardContractType: '', + chain: CHAIN_ETHEREUM, + method: '', + parameters: [':userAddress'], + returnValueTest: { + comparator: '=', + value: pkpAddress, }, - ]); + }); }); it('should throw an error for non-Ethereum address', () => {