| 1 |
'use strict'; |
| 2 |
|
| 3 |
describe('suite1', function () { |
| 4 |
it('should display this spec', function () {}); |
| 5 |
|
| 6 |
it('should only display this error', function (done) { |
| 7 |
throw new Error('this should be displayed'); |
| 8 |
}); |
| 9 |
|
| 10 |
it('should not display this error', function (done) { |
| 11 |
throw new Error('this should not be displayed'); |
| 12 |
}); |
| 13 |
}); |
| 14 |
|
| 15 |
describe('suite2', function () { |
| 16 |
before(function (done) { |
| 17 |
throw new Error('this hook should not be displayed'); |
| 18 |
}); |
| 19 |
|
| 20 |
it('should not display this error', function (done) { |
| 21 |
throw new Error('this should not be displayed'); |
| 22 |
}); |
| 23 |
}); |