githubEdit

Not Operator

You can prefix your expectation with the not operator to easily cause negative expectations for any matcher. When you read the API Docsarrow-up-right or the source, you will find nowhere the not methods. This is because we do this dynamically by convention.

expect( actual )
     .notToBe( 4 )
     .notToBeTrue();
     .notToBeFalse();

Last updated

Was this helpful?