Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
70nyIT committed Feb 16, 2024
1 parent f4e98fb commit 8c4bf81
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/predictStealthSafeAddress.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ describe('predictStealthSafeAddressWithBytecode', () => {
'0xfe972d3976f7cc5ba1c9b471d48362b82c6c5fdd',
];

await expect(
expect( () =>
predictStealthSafeAddressWithBytecode({
chainId,
threshold,
stealthAddresses,
safeProxyBytecode,
}),
).rejects.toThrow('No safe contracts found for this configuration.');
).toThrow('No safe contracts found for this configuration.');
});

it('should fail if not the chainId nor the useDefaultAddress values are there', async () => {
Expand All @@ -167,13 +167,13 @@ describe('predictStealthSafeAddressWithBytecode', () => {
'0xfe972d3976f7cc5ba1c9b471d48362b82c6c5fdd',
];

await expect(
predictStealthSafeAddressWithBytecode({
expect(
() => predictStealthSafeAddressWithBytecode({
threshold,
stealthAddresses,
safeProxyBytecode,
}),
).rejects.toThrow('chainId is required when useDefaultAddress is false');
).toThrow('chainId is required when useDefaultAddress is false');
});

it('should handle a variety of valid inputs without crashing', () => {
Expand Down

0 comments on commit 8c4bf81

Please sign in to comment.