Skip to content

Commit aa021eb

Browse files
committed
remove redundant tests from test/skip.js - still testing the documented API adequately
1 parent 8826099 commit aa021eb

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

test/skip.js

+2-19
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ tap.test('test SKIP comment', function (assert) {
2828
});
2929
});
3030

31-
32-
test('do not skip this', { skip: false }, function(t) {
33-
t.pass('this should run');
34-
ran ++;
35-
t.end();
36-
});
37-
3831
test('skip this', { skip: true }, function(t) {
3932
t.fail('this should not even run');
4033
ran++;
@@ -43,27 +36,17 @@ test('skip this', { skip: true }, function(t) {
4336

4437
test.skip('skip this too', function(t) {
4538
t.fail('this should not even run');
46-
ran++;
39+
ran++;
4740
t.end();
4841
});
4942

5043
test('skip subtest', function(t) {
51-
ran ++;
52-
t.test('do not skip this', { skip: false }, function(t) {
53-
ran ++;
54-
t.pass('this should run');
55-
t.end();
56-
});
44+
ran++;
5745
t.test('skip this', { skip: true }, function(t) {
5846
t.fail('this should not even run');
5947
t.end();
6048
});
6149
t.end();
6250
});
6351

64-
test('right number of tests ran', function(t) {
65-
t.equal(ran, 3, 'ran the right number of tests');
66-
t.end();
67-
});
68-
6952
// vim: set softtabstop=4 shiftwidth=4:

0 commit comments

Comments
 (0)