Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

documentation of 'not' in matchers #2

Closed
mc2 opened this Issue · 1 comment

2 participants

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

@xian

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.