Spectre
Spectre copied to clipboard
Add a `not` expectation property returning an opposite expectation
trafficstars
This allows you to run expectations such as:
try expect(...).to.not.beNil()
@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.