Skip to content

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

@richardwan

Description

@richardwan

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions