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

do we need condition.as(described)? #95

Open
yashaka opened this issue Apr 28, 2019 · 0 comments
Open

do we need condition.as(described)? #95

yashaka opened this issue Apr 28, 2019 · 0 comments

Comments

@yashaka
Copy link
Collaborator

yashaka commented Apr 28, 2019

The idea is to have a way to customize the description of complex condition, created by applying and or or to other conditions...

Example of usage:

has.exactText('').and(has.value(‘’)).as(‘is blank’)

Implementation:

export class Condition<E> {
    ...
    as(described: string) {
        return new Condition(described, this.fn);
    }
    ...
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

1 participant