| 1 |
'use strict'; |
| 2 |
|
| 3 |
describe('outer describe', function () { |
| 4 |
it('should run this test', function () {}); |
| 5 |
|
| 6 |
describe('skip in before', function () { |
| 7 |
before(function (done) { |
| 8 |
var self = this; |
| 9 |
setTimeout(function () { |
| 10 |
self.skip(); |
| 11 |
}, 0); |
| 12 |
}); |
| 13 |
|
| 14 |
it('should never run this test', function () { |
| 15 |
throw new Error('never run this test'); |
| 16 |
}); |
| 17 |
it('should never run this test', function () { |
| 18 |
throw new Error('never run this test'); |
| 19 |
}); |
| 20 |
}); |
| 21 |
|
| 22 |
it('should run this test', function () {}); |
| 23 |
}); |