File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,20 +38,20 @@ function defineSpecs(target: TestTargets) {
3838const specs = defineSpecs ( target )
3939
4040class ScreenshotNameGenerator {
41- private readonly _counterMap = new Map < string , number >
41+ private readonly _counterMap = new Map < string , number > ( )
4242
43- private _generateMapId ( file :string , title :string ) {
43+ private _generateMapId ( file : string , title : string ) {
4444 return `${ file } -${ title } `
4545 }
4646
47- getFilename ( file :string , title :string ) {
47+ getFilename ( file : string , title : string ) {
4848 const mapId = this . _generateMapId ( file , title )
4949 const counter = this . _counterMap . get ( mapId )
5050 const newCounter = typeof counter === 'undefined' ? 0 : counter + 1
5151 this . _counterMap . set ( mapId , newCounter )
52- const _title = title
52+ const _title = title
5353 . split ( ' ' )
54- . map ( word => word . charAt ( 0 ) . toUpperCase ( ) + word . slice ( 1 ) )
54+ . map ( ( word ) => word . charAt ( 0 ) . toUpperCase ( ) + word . slice ( 1 ) )
5555 . join ( '' )
5656 return `screenshot-${ path . basename ( file ) } -${ _title } -${ newCounter } .png`
5757 }
You can’t perform that action at this time.
0 commit comments