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

test: expect event to be emitted (#88) #108

Merged
merged 7 commits into from
Jun 7, 2024

Conversation

bidzyyys
Copy link
Collaborator

@bidzyyys bidzyyys commented Jun 7, 2024

Resolves #88

@bidzyyys bidzyyys self-assigned this Jun 7, 2024
@bidzyyys bidzyyys linked an issue Jun 7, 2024 that may be closed by this pull request
1 task
Copy link

netlify bot commented Jun 7, 2024

Deploy Preview for contracts-stylus canceled.

Name Link
🔨 Latest commit 08540ed
🔍 Latest deploy log https://app.netlify.com/sites/contracts-stylus/deploys/6662f00d9407540008e20bc7

Copy link

codecov bot commented Jun 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.0%. Comparing base (981e9dc) to head (08540ed).
Report is 2 commits behind head on main.

Additional details and impacted files

see 1 file with indirect coverage changes

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we maybe rename it to assertions.rs? I'm not sure, I feel like assert.rs is not a good name for this module.

lib/e2e/src/assert.rs Outdated Show resolved Hide resolved
lib/e2e/src/assert.rs Outdated Show resolved Hide resolved
lib/e2e/src/assert.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@alexfertel alexfertel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking super nice, I like this much better!

@bidzyyys bidzyyys marked this pull request as ready for review June 7, 2024 11:23
@bidzyyys bidzyyys force-pushed the test/assert-events-in-e2e-tests branch from 8968e81 to 0f1c8c6 Compare June 7, 2024 11:27
Copy link
Contributor

@alexfertel alexfertel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just a comment about wording. 💯

lib/e2e-proc/src/lib.rs Outdated Show resolved Hide resolved
pub use deploy::deploy;
pub use e2e_proc::test;
pub use system::{provider, Provider, Signer};
pub use user::User;

/// This macro provides an easy way for broadcasting the transaction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think of changing the wording like this?

Suggested change
/// This macro provides an easy way for broadcasting the transaction
/// This macro provides a shorthand for broadcasting the transaction

@bidzyyys bidzyyys requested a review from alexfertel June 7, 2024 11:33
@bidzyyys bidzyyys merged commit 58a7163 into main Jun 7, 2024
20 checks passed
@bidzyyys bidzyyys deleted the test/assert-events-in-e2e-tests branch June 7, 2024 11:40
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

Successfully merging this pull request may close these issues.

[Feature]: Abstract away asserting events get emitted in e2e tests
2 participants