Skip to content

Commit 67be6a9

Browse files
committed
test: address nit
1 parent 6b2341f commit 67be6a9

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

packages/eip-5792-middleware/src/hooks/processSendCalls.test.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -619,18 +619,14 @@ describe('EIP-5792', () => {
619619
);
620620

621621
expect(result).toBeDefined();
622-
expect(payload.capabilities?.auxiliaryFunds?.requiredAssets?.length).toBe(
623-
1,
624-
);
625-
expect(
626-
payload.capabilities?.auxiliaryFunds?.requiredAssets?.[0].amount,
627-
).toBe('0x5');
628-
expect(
629-
payload.capabilities?.auxiliaryFunds?.requiredAssets?.[0].address,
630-
).toBe('0x123');
631-
expect(
632-
payload.capabilities?.auxiliaryFunds?.requiredAssets?.[0].standard,
633-
).toBe('erc20');
622+
const requiredAssets =
623+
payload.capabilities?.auxiliaryFunds?.requiredAssets;
624+
expect(requiredAssets).toHaveLength(1);
625+
expect(requiredAssets?.[0]).toMatchObject({
626+
amount: '0x5',
627+
address: '0x123',
628+
standard: 'erc20',
629+
});
634630
});
635631
});
636632
});

0 commit comments

Comments
 (0)