Skip to content

Commit

Permalink
leave explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed May 9, 2018
1 parent ad95903 commit 38b7a47
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/helpers/todo.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@ function assertTestStatus(assert, results) {
assert.pushResult(r);
});
} else {
// ideally we could report which assertions still fail; however, doing so
// would result in testem reporting these assertions as failures, so we must
// skip the test. It would be neat if we could still print something like
// the below.
/*
results.forEach(r => {
let result = r.result;
r.result = true;
r.message = `[TODO ${result === true ? 'COMPLETED' : 'INCOMPLETE'}] ${r.message}`;
assert.pushResult(r);
});
*/

assert.test.expected = 0;
assert.test.skip = true;
assert.test.testReport.expected = 0;
Expand Down

0 comments on commit 38b7a47

Please sign in to comment.