Skip to content

Commit

Permalink
Merge pull request #761 from susumutomita/fix/wrapped-keys-test-issue760
Browse files Browse the repository at this point in the history
fix #760 wrapped-keys test to expect a single ACC object instead of an array
  • Loading branch information
Ansonhkg authored Jan 15, 2025
2 parents 412264b + 30f3217 commit b1ed607
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions packages/wrapped-keys/src/lib/api/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit b1ed607

Please sign in to comment.