visionmedia/mocha — pull request #452 by fizker (2012-06-05 20:42:22+00:00)
Title: Change xdescribe and xit to add tests as pending

It annoyed me that when disabling tests by adding `xit` or `xdescribe`, the tests were not marked as pending. This made it non-visible that code were disabled.

For `it()`, another way is to add a null-object before the function:

it('some test', null, function() {
Some test-code..
});

But for `describe()`, there were no such convenience.

Now, `xit('title', function or null)` will be the same as `it('title')` and `xdescribe('title', function-with-its)` will be the same as `describe('title', function-where-all-its-are-xits)`.