Spectre icon indicating copy to clipboard operation
Spectre copied to clipboard

Add a `not` expectation property returning an opposite expectation

Open kylef opened this issue 7 years ago • 1 comments
trafficstars

This allows you to run expectations such as:

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

kylef avatar Dec 27 '17 04:12 kylef

@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.

ilyapuchka avatar Dec 28 '17 18:12 ilyapuchka