From 11b05dccb9db1cf9f266da25fe7b47da063ab62d Mon Sep 17 00:00:00 2001 From: katspaugh Date: Wed, 20 Nov 2024 13:50:32 +0100 Subject: [PATCH] Fix test --- tests/endpoint.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/endpoint.test.ts b/tests/endpoint.test.ts index bcb1805b..9c21bb10 100644 --- a/tests/endpoint.test.ts +++ b/tests/endpoint.test.ts @@ -121,16 +121,16 @@ describe('getEndpoint', () => { ) }) - it('should call a data decoder confirmation view POST endpoint', async () => { + it('should call a preview POST endpoint', async () => { await expect( - postEndpoint('https://test.test', '/v1/chains/{chainId}/safes/{safe_address}/views/transaction-confirmation', { + postEndpoint('https://test.test', '/v1/chains/{chainId}/transactions/{safe_address}/preview', { path: { chainId: '4', safe_address: '0x123' }, body: { data: '0x456' }, }), ).resolves.toEqual({ success: true }) expect(fetchData).toHaveBeenCalledWith( - 'https://test.test/v1/chains/4/safes/0x123/views/transaction-confirmation', + 'https://test.test/v1/chains/4/transactions/0x123/preview', 'POST', { data: '0x456' }, undefined,