Skip to content

some_value.should.be.something_undefined passes #263

Closed
cvkef opened this Issue May 26, 2014 · 1 comment

2 participants

@cvkef
cvkef commented May 26, 2014

When using should there is a chance to get a false positive test.

For example:

true.should.be.foo # => undefined, but the test passes silently
@logicalparadox
Chai.js Assertion Library member

This is actually the case with any property assertion. And a limitation of JavaScript, not Chai. ES6 has options, but it is a long way off. Sorry, can't do much.

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.