Skip to content

Commit

Permalink
[Core] Remove todo and skip explanation options
Browse files Browse the repository at this point in the history
  • Loading branch information
r0mflip committed Jun 24, 2019
1 parent b5dce9c commit c347a5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 64 deletions.
4 changes: 2 additions & 2 deletions lib/results.js
Expand Up @@ -144,8 +144,8 @@ function encodeResult(res, count) {
output += (res.ok ? 'ok ' : 'not ok ') + count;
output += res.name ? ' ' + res.name.toString().replace(/\s+/g, ' ') : '';

if (res.skip) output += ' # SKIP' + (typeof res.skip === 'string' ? ' ' + res.skip : '');
else if (res.todo) output += ' # TODO' + (typeof res.todo === 'string' ? ' ' + res.todo : '');
if (res.skip) output += ' # SKIP';
else if (res.todo) output += ' # TODO';

output += '\n';
if (res.ok) return output;
Expand Down
8 changes: 4 additions & 4 deletions test/objectMode.js
Expand Up @@ -17,7 +17,7 @@ tap.test('object results', function (assert) {
var todos = 0;
var skips = 0;
var testIds = [];
var endIds = []
var endIds = [];
var asserts = 0;

assert.equal(objects.length, 13);
Expand Down Expand Up @@ -52,17 +52,17 @@ tap.test('object results', function (assert) {

tape('parent', function (t1) {
t1.equal(true, true);
t1.test('child1', {skip: 'not installed'}, function (t2) {
t1.test('child1', {skip: true}, function (t2) {
t2.equal(true, true);
t2.equal(true, false);
t2.end();
});
t1.test('child2', {todo: 'will get done soon'}, function (t3) {
t1.test('child2', {todo: true}, function (t3) {
t3.equal(true, false);
t3.equal(true, true);
t3.end();
});
t1.test('child3', {todo: 'will do'});
t1.test('child3', {todo: true});
t1.equal(true, true);
t1.equal(true, true);
t1.end();
Expand Down
58 changes: 0 additions & 58 deletions test/todo_explanation.js

This file was deleted.

0 comments on commit c347a5d

Please sign in to comment.