loca
Version:
WebKit reporter for Mocha
29 lines (27 loc) • 549 B
JavaScript
describe('test suite', function () {
it('should pass', function (done) {
setTimeout(function () {
done();
}, 100);
});
it('should fail', function (done) {
'a'.should.equal('b');
done();
});
it.skip('should skip', function (done) {
done();
});
describe('inner', function () {
it('should pass', function (done) {
setTimeout(function () {
done();
}, 50);
});
it('should fail', function (done) {
done(new Error('Something bad happened!'));
});
it.skip('should skip', function (done) {
done();
});
});
});