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');
88const chalk = require ( 'chalk' ) ;
99const cliTruncate = require ( 'cli-truncate' ) ;
1010const cross = require ( 'figures' ) . cross ;
11- const repeating = require ( 'repeating' ) ;
1211const indentString = require ( 'indent-string' ) ;
1312const formatAssertError = require ( '../format-assert-error' ) ;
1413const extractStack = require ( '../extract-stack' ) ;
@@ -244,7 +243,7 @@ class MiniReporter {
244243 return status + '\n\n' ;
245244 }
246245 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 ) ) ;
248247 }
249248 clear ( ) {
250249 return '' ;
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ const prettyMs = require('pretty-ms');
55const figures = require ( 'figures' ) ;
66const chalk = require ( 'chalk' ) ;
77const plur = require ( 'plur' ) ;
8- const repeating = require ( 'repeating' ) ;
98const formatAssertError = require ( '../format-assert-error' ) ;
109const extractStack = require ( '../extract-stack' ) ;
1110const codeExcerpt = require ( '../code-excerpt' ) ;
@@ -139,7 +138,7 @@ class VerboseReporter {
139138 return output + '\n' ;
140139 }
141140 section ( ) {
142- return chalk . gray . dim ( repeating ( '\u2500' , process . stdout . columns || 80 ) ) ;
141+ return chalk . gray . dim ( '\u2500' . repeat ( process . stdout . columns || 80 ) ) ;
143142 }
144143 write ( str ) {
145144 console . error ( str ) ;
Original file line number Diff line number Diff line change 150150 "pkg-conf" : " ^2.0.0" ,
151151 "plur" : " ^2.0.0" ,
152152 "pretty-ms" : " ^2.0.0" ,
153- "repeating" : " ^2.0.0" ,
154153 "require-precompiled" : " ^0.1.0" ,
155154 "resolve-cwd" : " ^1.0.0" ,
156155 "slash" : " ^1.0.0" ,
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const sinon = require('sinon');
88const test = require ( 'tap' ) . test ;
99const cross = require ( 'figures' ) . cross ;
1010const lolex = require ( 'lolex' ) ;
11- const repeating = require ( 'repeating' ) ;
1211const AvaError = require ( '../../lib/ava-error' ) ;
1312const MiniReporter = require ( '../../lib/reporters/mini' ) ;
1413const beautifyStack = require ( '../../lib/beautify-stack' ) ;
@@ -25,7 +24,7 @@ const stackLineRegex = /.+ \(.+:[0-9]+:[0-9]+\)/;
2524// Needed because tap doesn't emulate a tty environment and thus this is
2625// `undefined`, making `cli-truncate` append '...' to test titles
2726process . stdout . columns = 5000 ;
28- const fullWidthLine = chalk . gray . dim ( repeating ( '\u2500' , 5000 ) ) ;
27+ const fullWidthLine = chalk . gray . dim ( '\u2500' . repeat ( 5000 ) ) ;
2928
3029function miniReporter ( options ) {
3130 const reporter = new MiniReporter ( options ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const chalk = require('chalk');
88const sinon = require ( 'sinon' ) ;
99const test = require ( 'tap' ) . test ;
1010const lolex = require ( 'lolex' ) ;
11- const repeating = require ( 'repeating' ) ;
1211const beautifyStack = require ( '../../lib/beautify-stack' ) ;
1312const colors = require ( '../../lib/colors' ) ;
1413const VerboseReporter = require ( '../../lib/reporters/verbose' ) ;
@@ -710,7 +709,7 @@ test('full-width line when sectioning', t => {
710709 const output = reporter . section ( ) ;
711710 process . stdout . columns = prevColumns ;
712711
713- t . is ( output , chalk . gray . dim ( repeating ( '\u2500' , 80 ) ) ) ;
712+ t . is ( output , chalk . gray . dim ( '\u2500' . repeat ( 80 ) ) ) ;
714713 t . end ( ) ;
715714} ) ;
716715
You can’t perform that action at this time.
0 commit comments