Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Nov 20, 2024
1 parent a6b6bfc commit 11b05dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/endpoint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 11b05dc

Please sign in to comment.