LearnBoost/expect.js — pull request #20 by yourcelf (2012-05-13 16:54:55+00:00)
Title: Add explicit failure through `expect().fail()`

Sometimes, you just need to signal failure, and the logic doesn't make
sense to encapsulate within `.to.be.not` type chaining. This commit
adds an explicit `fail()` assertion which forces failure. Since there's
no context to expect() with which to construct an 'expected ... to be
...` type failure message, also let a message be specified with an
optional first argument: `fail("custom message")`.

This saves having to do a hack like `expect(true).to.be(false)`.