Skip to content

Commit 6217bb8

Browse files
committed
chore: apply code format
1 parent 2a167f1 commit 6217bb8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

e2e/wdio.conf.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@ function defineSpecs(target: TestTargets) {
3838
const specs = defineSpecs(target)
3939

4040
class 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
}

0 commit comments

Comments
 (0)