File tree Expand file tree Collapse file tree 5 files changed +4
-9
lines changed Expand file tree Collapse file tree 5 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const spinners = require('cli-spinners');
8
8
const chalk = require ( 'chalk' ) ;
9
9
const cliTruncate = require ( 'cli-truncate' ) ;
10
10
const cross = require ( 'figures' ) . cross ;
11
- const repeating = require ( 'repeating' ) ;
12
11
const indentString = require ( 'indent-string' ) ;
13
12
const formatAssertError = require ( '../format-assert-error' ) ;
14
13
const extractStack = require ( '../extract-stack' ) ;
@@ -244,7 +243,7 @@ class MiniReporter {
244
243
return status + '\n\n' ;
245
244
}
246
245
section ( ) {
247
- return '\n' + chalk . gray . dim ( repeating ( '\u2500' , process . stdout . columns || 80 ) ) ;
246
+ return '\n' + chalk . gray . dim ( '\u2500' . repeat ( process . stdout . columns || 80 ) ) ;
248
247
}
249
248
clear ( ) {
250
249
return '' ;
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ const prettyMs = require('pretty-ms');
5
5
const figures = require ( 'figures' ) ;
6
6
const chalk = require ( 'chalk' ) ;
7
7
const plur = require ( 'plur' ) ;
8
- const repeating = require ( 'repeating' ) ;
9
8
const formatAssertError = require ( '../format-assert-error' ) ;
10
9
const extractStack = require ( '../extract-stack' ) ;
11
10
const codeExcerpt = require ( '../code-excerpt' ) ;
@@ -139,7 +138,7 @@ class VerboseReporter {
139
138
return output + '\n' ;
140
139
}
141
140
section ( ) {
142
- return chalk . gray . dim ( repeating ( '\u2500' , process . stdout . columns || 80 ) ) ;
141
+ return chalk . gray . dim ( '\u2500' . repeat ( process . stdout . columns || 80 ) ) ;
143
142
}
144
143
write ( str ) {
145
144
console . error ( str ) ;
Original file line number Diff line number Diff line change 150
150
"pkg-conf" : " ^2.0.0" ,
151
151
"plur" : " ^2.0.0" ,
152
152
"pretty-ms" : " ^2.0.0" ,
153
- "repeating" : " ^2.0.0" ,
154
153
"require-precompiled" : " ^0.1.0" ,
155
154
"resolve-cwd" : " ^1.0.0" ,
156
155
"slash" : " ^1.0.0" ,
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const sinon = require('sinon');
8
8
const test = require ( 'tap' ) . test ;
9
9
const cross = require ( 'figures' ) . cross ;
10
10
const lolex = require ( 'lolex' ) ;
11
- const repeating = require ( 'repeating' ) ;
12
11
const AvaError = require ( '../../lib/ava-error' ) ;
13
12
const MiniReporter = require ( '../../lib/reporters/mini' ) ;
14
13
const beautifyStack = require ( '../../lib/beautify-stack' ) ;
@@ -25,7 +24,7 @@ const stackLineRegex = /.+ \(.+:[0-9]+:[0-9]+\)/;
25
24
// Needed because tap doesn't emulate a tty environment and thus this is
26
25
// `undefined`, making `cli-truncate` append '...' to test titles
27
26
process . stdout . columns = 5000 ;
28
- const fullWidthLine = chalk . gray . dim ( repeating ( '\u2500' , 5000 ) ) ;
27
+ const fullWidthLine = chalk . gray . dim ( '\u2500' . repeat ( 5000 ) ) ;
29
28
30
29
function miniReporter ( options ) {
31
30
const reporter = new MiniReporter ( options ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const chalk = require('chalk');
8
8
const sinon = require ( 'sinon' ) ;
9
9
const test = require ( 'tap' ) . test ;
10
10
const lolex = require ( 'lolex' ) ;
11
- const repeating = require ( 'repeating' ) ;
12
11
const beautifyStack = require ( '../../lib/beautify-stack' ) ;
13
12
const colors = require ( '../../lib/colors' ) ;
14
13
const VerboseReporter = require ( '../../lib/reporters/verbose' ) ;
@@ -710,7 +709,7 @@ test('full-width line when sectioning', t => {
710
709
const output = reporter . section ( ) ;
711
710
process . stdout . columns = prevColumns ;
712
711
713
- t . is ( output , chalk . gray . dim ( repeating ( '\u2500' , 80 ) ) ) ;
712
+ t . is ( output , chalk . gray . dim ( '\u2500' . repeat ( 80 ) ) ) ;
714
713
t . end ( ) ;
715
714
} ) ;
716
715
You can’t perform that action at this time.
0 commit comments