Debian Codegraph @

test/integration/fixtures/pending/skip-sync-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 immediately', function () {
11 this.skip();
12 throw new Error('never run this test');
13 });
14 it('should run other tests in suite', function () {});
15
16 afterEach(function() {
17 runOrder.push('afterEach');
18 });
19 after(function() {
20 runOrder.push('after');
21 assert.deepStrictEqual(runOrder, [
22 'beforeEach', 'afterEach',
23 'beforeEach', 'afterEach',
24 'after'
25 ]);
26 throw new Error('should throw this error');
27 });
28 });