Skip to content

Commit

Permalink
Stripped ANSI sequences from all titles (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain GAGNAIRE authored and adamgruber committed Jan 23, 2018
1 parent 25142bc commit ad7d5c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ function cleanTest(test, config) {
const code = test.fn ? test.fn.toString() : test.body;

const cleaned = {
title: test.title,
fullTitle: _.isFunction(test.fullTitle) ? test.fullTitle() : /* istanbul ignore next */test.title,
title: stripAnsi(test.title),
fullTitle: _.isFunction(test.fullTitle) ? stripAnsi(test.fullTitle()) : /* istanbul ignore next */ stripAnsi(test.title),
timedOut: test.timedOut,
duration: test.duration || 0,
state: test.state,
Expand Down Expand Up @@ -228,7 +228,7 @@ function cleanSuite(suite, totalTestsRegistered, config) {

const cleaned = {
uuid: uuid.v4(),
title: suite.title,
title: stripAnsi(suite.title),
fullFile: suite.file || '',
file: suite.file ? suite.file.replace(process.cwd(), '') : '',
beforeHooks,
Expand Down

0 comments on commit ad7d5c8

Please sign in to comment.