-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
skip-sync-after.fixture.js
37 lines (30 loc) · 1.13 KB
/
skip-sync-after.fixture.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
'use strict';
var assert = require('assert');
describe('skip in after', function () {
it('should run this test-1', function () {});
after('should print DeprecationWarning', function () {
this.skip();
throw new Error('never throws this error');
});
after('test should not be marked as pending', function () {
assert(this.currentTest.title === 'should run this test-1');
assert(this.currentTest.state === 'passed');
assert(this.currentTest.pending === false);
});
describe('inner suite', function () {
it('should run this test-2', function () {});
after('test should not be marked as pending', function () {
assert(this.currentTest.title === 'should run this test-2');
assert(this.currentTest.state === 'passed');
assert(this.currentTest.pending === false);
});
});
});
describe('second suite', function () {
it('should run this test-3', function () {});
after('test should not be marked as pending', function () {
assert(this.currentTest.title === 'should run this test-3');
assert(this.currentTest.state === 'passed');
assert(this.currentTest.pending === false);
});
});