Debian Codegraph @

test/integration/fixtures/uncaught/fatal.fixture.js

raw
1 'use strict';
2
3 describe('fatal uncaught exception', function () {
4 describe('first suite', function () {
5 it('should bail if a successful test asynchronously fails', function (done) {
6 done();
7 process.nextTick(function () {
8 throw new Error('global error');
9 });
10 });
11
12 it('should not actually get run', function () {
13 throw new Error('should never throw - first suite');
14 });
15 });
16
17 describe('second suite', function () {
18 it('should not actually get run', function () {
19 throw new Error('should never throw - second suite');
20 });
21 });
22 });