Skip to content

Commit b1ed607

Browse files
authored
Merge pull request #761 from susumutomita/fix/wrapped-keys-test-issue760
fix #760 wrapped-keys test to expect a single ACC object instead of an array
2 parents 412264b + 30f3217 commit b1ed607

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

packages/wrapped-keys/src/lib/api/utils.spec.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,17 @@ describe('getPkpAccessControlCondition', () => {
8787
it('should correctly create the ACC', () => {
8888
const pkpAddress = '0xd1Af1AAC50aC837C873200D17b78664aFCde597C';
8989
const acc = getPkpAccessControlCondition(pkpAddress);
90-
expect(acc).toEqual([
91-
{
92-
contractAddress: '',
93-
standardContractType: '',
94-
chain: CHAIN_ETHEREUM,
95-
method: '',
96-
parameters: [':userAddress'],
97-
returnValueTest: {
98-
comparator: '=',
99-
value: pkpAddress,
100-
},
90+
expect(acc).toEqual({
91+
contractAddress: '',
92+
standardContractType: '',
93+
chain: CHAIN_ETHEREUM,
94+
method: '',
95+
parameters: [':userAddress'],
96+
returnValueTest: {
97+
comparator: '=',
98+
value: pkpAddress,
10199
},
102-
]);
100+
});
103101
});
104102

105103
it('should throw an error for non-Ethereum address', () => {

0 commit comments

Comments
 (0)