Skip to content

Commit 348a145

Browse files
pujaganititusfortner
authored andcommitted
Fix linting
1 parent 9636417 commit 348a145

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

javascript/selenium-webdriver/generate_bidi.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ function loadEnhancements(manifestPath) {
257257
throw new Error(`Failed to parse enhancements manifest at ${fullPath}: ${err.message}`)
258258
}
259259
if (typeof parsed !== 'object' || parsed === null || Array.isArray(parsed)) {
260-
throw new Error(`Enhancements manifest at ${fullPath} must be a JSON object, got ${Array.isArray(parsed) ? 'array' : typeof parsed}`)
260+
throw new Error(
261+
`Enhancements manifest at ${fullPath} must be a JSON object, got ${Array.isArray(parsed) ? 'array' : typeof parsed}`,
262+
)
261263
}
262264
return parsed
263265
}
@@ -842,7 +844,9 @@ function generateClass({ className, commands, events, enhancement, emptyResultTy
842844
lines.push(` private constructor(private readonly bidi: BidiConnection) {}`)
843845
lines.push('')
844846
lines.push(` static async create(driver: unknown): Promise<${className}> {`)
845-
lines.push(` const caps = await (driver as { getCapabilities(): Promise<{ get(key: string): unknown }> }).getCapabilities()`)
847+
lines.push(
848+
` const caps = await (driver as { getCapabilities(): Promise<{ get(key: string): unknown }> }).getCapabilities()`,
849+
)
846850
lines.push(` if (!caps.get('webSocketUrl')) {`)
847851
lines.push(` throw new Error('WebDriver instance must support BiDi protocol')`)
848852
lines.push(` }`)

0 commit comments

Comments
 (0)