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
improve expectRevert output #59
improve expectRevert output #59
Conversation
1925ada
to
ec36a94
Compare
ec36a94
to
d431f14
Compare
Nice @dotrungkien! Thanks! Have you manually tested that this works? It would be good to have automated tests for this, which would also simplify testing it on different setups (like different ganache versions). We can open that as a different issue unless you're interested in tackling it as part of this pull request. |
@frangio thank you for your comment. |
@dotrungkien It would be a great step to add at least one test that the raised openzeppelin-test-helpers/test/src/expectRevert.test.js Lines 40 to 42 in a4789e0
But instead of simply using It might be a good idea to modify openzeppelin-test-helpers/test/helpers/assertFailure.js Lines 6 to 7 in a4789e0
|
59aee75
to
7966173
Compare
@frangio thus, we not need to edit or add more test into openzeppelin-test-helpers/test/src/expectRevert.test.js Lines 40 to 42 in a4789e0
all test passed with both ganache version above and bellow 2.2.0. |
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.
Implemented the missing parts myself. Thanks @dotrungkien!
fixes #33
AssertionError
instead of plainError
as @frangio suggestionReturned error: VM Exception while processing transaction:
error substring fromerror.message