Debian Codegraph @

test/integration/fixtures/pending/skip-async-spec.fixture.js

raw symbols SCIP
1 'use strict';
2 var assert = require('assert');
3
4 describe('skip in test', function () {
5 var runOrder = [];
6 beforeEach(function () {
7 runOrder.push('beforeEach');
8 });
9
10 it('should skip async', function (done) {
11 var self = this;
12 setTimeout(function () {
13 self.skip(); // done() is not required
14 }, 0);
15 });
16 it('should run other tests in suite', function () {});
17
18 afterEach(function() {
19 runOrder.push('afterEach');
20 });
21 after(function() {
22 runOrder.push('after');
23 assert.deepStrictEqual(runOrder, [
24 'beforeEach', 'afterEach',
25 'beforeEach', 'afterEach',
26 'after'
27 ]);
28 throw new Error('should throw this error');
29 });
30 });