Skip to content

Commit

Permalink
Remove line breaks from subtest names
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Feb 2, 2017
1 parent d5f9ead commit eb08505
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/base.js
Expand Up @@ -28,6 +28,10 @@ function Base (options) {
this.parent = ownOr(options, 'parent', null)
this.bail = ownOrEnv(options, 'bail', 'TAP_BAIL', true)
this.name = ownOr(options, 'name', '')
if (!this.name)
this.name = ''
else
this.name = this.name.replace(/[\n\r\s\t]/g, ' ')
this.indent = ownOr(options, 'indent', '')
this.silent = !!options.silent
this.buffered = !!options.buffered || !!options.silent
Expand Down

0 comments on commit eb08505

Please sign in to comment.