Skip to content
This repository

documentation of 'not' in matchers #2

Closed
mc2 opened this Issue · 1 comment

2 participants

Mark Carranza Christian Williams
Mark Carranza
mc2 commented

Documentation incorrect:

Expectation Matchers

Jasmine has several built-in matchers. Here are a few:

...

wrong

Every matcher's criteria can be inverted by prepending .not:

expect(x).not.toEqual(y); compares objects or primitives x and y and passes if they are not equivalent

right?

Every matcher's criteria can be inverted by inserting Not in the matcher function name after to:

expect(x).toNotEqual(y); compares objects or primitives x and y and passes if they are not equivalent

Christian Williams
xian commented

Jasmine edge actually has the expect(x).not.toEqual(y) syntax; the old syntax is still supported.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.