Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blockchain test coverage #1092

Merged

Conversation

AmberKiso
Copy link
Contributor

@AmberKiso AmberKiso commented Mar 3, 2022

Summary

Increase test coverage of utils/blockchain.ts (93.61% lines).
Note: the name of the new file is blockutil.test.ts, not blockchain.test.ts due to an interaction with running yarn test blockchain - both blockchain.test.ts files execute, but none of the "describe" nor "it" messages are printed out.
Also leaving isBlockMine() untested - it's a trivial function and makes more sense to be tested with transaction.ts

Testing Plan

Yarn link, yarn test

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes
[X] No

@AmberKiso AmberKiso requested a review from a team as a code owner March 3, 2022 06:21
@NullSoldier NullSoldier merged commit 3f8f2f7 into iron-fish:staging Mar 4, 2022
@AmberKiso AmberKiso deleted the blockchain-test-coverage--WIP branch October 26, 2022 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants