-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Refactor assert revert helper to encapsulate promises #628
Refactor assert revert helper to encapsulate promises #628
Conversation
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.
Change to assertRevert
looks fine. I have not reviewed the ERC721 contract.
test/helpers/assertRevert.js
Outdated
assert.fail('Expected revert not received'); | ||
} catch (error) { | ||
const revertFound = error.message.search('revert') >= 0; | ||
console.log('Revert found: ', revertFound); |
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.
Remove this console.log
.
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.
👍
98b8dcb
to
8c02b9a
Compare
8c02b9a
to
55c59f8
Compare
@federicobond I rebased this PR from master so it can be merged before #627. Actually #627 now depends on this PR. Please review |
Please remove the Everything else looks good! 🎄 |
55c59f8
to
4173800
Compare
done @federicobond :) |
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.
LGTM
will not the catch also catch the assert.fail('...')? |
No description provided.