-
Notifications
You must be signed in to change notification settings - Fork 31
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
test: improved tests for packages/web3/src/address
#471
base: master
Are you sure you want to change the base?
Conversation
Hey, thanks for the contribution. Please make sure that the tests pass, right now several of them are failing: > npm run test -- address.test.ts --collectCoverageOnlyFrom ''
....
Test Suites: 1 failed, 1 total
Tests: 3 failed, 36 passed, 39 total |
PTAL @h0ngcha0 |
PTAL @h0ngcha0 |
Please run |
Wouldn't it be a major improvement of these tests if the literal addresses and contractI-ids were extracted into variables of meaningful name, possibly generating them? |
I guess to generate the addresses I would need to import from @alephium/web3-wallet package, which is not possible as we're not able to import rn, as has been my conclusion from our chats on telegram group. So it has been done this way |
Made all the required changes according to your reviews @h0ngcha0 ser, PTAL |
Umm I don't think there are any formatting errors in the updated file, just checked with the command |
Yes, but I noticed of same string literal to be used 5 times in the same spec which is a perfect candidate for a constant I think |
Done, extracted all repetitive addresses and contractIds into separate variables |
resolves #451