logicalparadox/chai — Issue #16: negated property(name, value) assertion
Author: jfirebaugh
Created: 2012-02-13 01:26:28+00:00
State: open

I would expect a negated assertion to pass if and only if it would fail if not negated. But this is not true of the `property(name, value)` assertion:

expect('asd').to.have.property('foo', 3); // fails
expect('asd').not.to.have.property('foo', 3); // also fails (I would expect it to pass)

I realize the test verify the existing behavior, but is there any chance it could change?