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

enhancement request: introduce expect(object).to(matcher) syntax #38

Open
richardwan opened this issue Oct 1, 2020 · 1 comment
Open

Comments

@richardwan
Copy link

introduce syntactic sugar to make the hamjest code look more like jest code.

__.expect(5).toBe(__.greaterThan(4))

would be equivalent to
__.assertThat(5, __.greaterThan(4))

if this would help people familiar with the "jest syntax" unleash the power of the hamcrest style, i would be happy to try and implement this.

@rluba
Copy link
Owner

rluba commented Oct 2, 2020

Thank you for the suggestion. Sure, give it a try! I welcome such PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants