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 a not expectation property returning an opposite expectation #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kylef
Copy link
Owner

@kylef kylef commented Dec 27, 2017

This allows you to run expectations such as:

try expect(...).to.not.beNil()

This allows you to run expectations such as:

    try expect(...).to.not.beNil()
@kylef kylef mentioned this pull request Dec 27, 2017
@ilyapuchka
Copy link

@kylef here I implemented my version of this that gives a bit better code completion options.
With my implementation it's only possible to use to or to.not after expect(...) and then returned objects have their own sets of conditions. So that things like expect(...).beNil, expect(...).to.to or expect(...).to.not.to.to are not possible.

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

Successfully merging this pull request may close these issues.

None yet

2 participants