The way we are using the helper functions in the new mocked test will not catch bugs introduced in helper functions like prepareTransaction.
|
expect(spy).toHaveBeenCalledWith( |
|
rpcUrl, |
|
buildFetchInit( |
|
buildRPCPostBody('eth_call', [prepareTransaction(data), 'latest']), |
|
), |
|
); |
We need to make a test for testing the helpers like:
prepareTransaction
buildRPCPostBody
toChecksumAddress
cleanLog
Lmk what other helpers need to be tested
@dawsbot
The way we are using the helper functions in the new mocked test will not catch bugs introduced in helper functions like
prepareTransaction.essential-eth/src/providers/test/json-rpc-provider/call.test.ts
Lines 81 to 86 in 69cec04
We need to make a test for testing the helpers like:
prepareTransactionbuildRPCPostBodytoChecksumAddresscleanLogLmk what other helpers need to be tested @dawsbot