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

Add jest-matchers for functional tests #2561

Closed
faustbrian opened this issue May 10, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@faustbrian
Copy link
Collaborator

commented May 10, 2019

Now that we established a fixed better for the functional forging tests we can start to build jest matchers for them to make the writing of those tests simpler.

expect(transaction).toBeAccepted()
expect(transaction).toBeBroadcast()
expect(transaction).toBeRejected()
expect(transaction).toBeForged()

expect(transaction).not.toBeAccepted()
expect(transaction).not.toBeBroadcast()
expect(transaction).not.toBeRejected()
expect(transaction).not.toBeForged()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.