-
Notifications
You must be signed in to change notification settings - Fork 14
Remove smock
from IexecPocoBoost unit tests
#148
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
Remove smock
from IexecPocoBoost unit tests
#148
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #148 +/- ##
========================================
Coverage 84.58% 84.58%
========================================
Files 35 35
Lines 1077 1077
Branches 221 201 -20
========================================
Hits 911 911
Misses 166 166 ☔ View full report in Codecov by Sentry. |
async function createFakeErc734IdentityInstance() { | ||
return await smock.fake<IERC734>(IERC734__factory); | ||
} | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note for the future:
I think we can declare variables such as proxyAddress, iexecPocoBoostInstance, iexecMaintenanceAsAdmin, ...
outside of the describe
block to put utility functions outside and keep only init and test functions inside describe
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See Declare variables before top describe.
Yes, not sure which form we generally prefer, but at least this form reduces diff a bit in this context 👍 !
No description provided.