starknet.js
starknet.js copied to clipboard
Detect and write missing unit tests
Detect any missing unit tests to improve testing coverage!
Just one example is the public async getEvents(eventFilter: RPC.EventFilter) method
Unit Tests for CallData.compile
- recompile compiled
- RawCalldata to Calldata
- compile arrays and objects
- combining compiled data
- compile than add to new RawArgs and recompile like {a:123, b:Calldata, ...}
Also unit test for rest of the CallData method where aplicable
Missing:
~~getInvokeEstimateFee~~
I'll take the test for getInvokeEstimateFee
found 2 util method missing unit tests , I want add some unit test to improve testing coverage
sanitizeHex
splitLongString
@ivpavici Can we close this generic Issue as we track by code coverage so we can have specific ones?