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

Assertion for Reverted Transaction #211

Open
Petyo-Lukanov opened this issue Mar 14, 2022 · 0 comments
Open

Assertion for Reverted Transaction #211

Petyo-Lukanov opened this issue Mar 14, 2022 · 0 comments

Comments

@Petyo-Lukanov
Copy link
Collaborator

As a developer, I want to assert that a given transaction reverted. Example:

it('Can not transfer above the amount', async () => {
    await expect(token.transfer(walletTo.address, 1007)).to.be.reverted;
  });
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

No branches or pull requests

1 participant