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,