From 8c4bf81a2dd9a9c5413b639c0a4385f501a7a91b Mon Sep 17 00:00:00 2001 From: Antonio Date: Fri, 16 Feb 2024 10:59:02 +0100 Subject: [PATCH] fix: tests --- test/predictStealthSafeAddress.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/predictStealthSafeAddress.test.ts b/test/predictStealthSafeAddress.test.ts index 58b65b7..a2dadbf 100644 --- a/test/predictStealthSafeAddress.test.ts +++ b/test/predictStealthSafeAddress.test.ts @@ -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 () => { @@ -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', () => {