Skip to content

Commit 753a474

Browse files
committed
Eslint fix
1 parent 2d48726 commit 753a474

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/app/src/components/sidebar/test-suite.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ export class ExplorerTestEntry extends CollapseableEntry {
243243
${!this.isRunning
244244
? html`
245245
<button
246-
class="p-1 rounded hover:bg-toolbarHoverBackground my-1 group/button ${this.runDisabled
246+
class="p-1 rounded hover:bg-toolbarHoverBackground my-1 group/button ${this
247+
.runDisabled
247248
? 'opacity-60 cursor-not-allowed hover:bg-transparent'
248249
: ''}"
249250
title="${runTooltip}"

packages/backend/src/runner.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ export interface RunnerRequestBody {
2929

3030
const FRAMEWORK_FILTERS: Record<
3131
string,
32-
(ctx: {
33-
specArg?: string
34-
payload: RunnerRequestBody
35-
}) => string[]
32+
(ctx: { specArg?: string; payload: RunnerRequestBody }) => string[]
3633
> = {
3734
cucumber: ({ specArg, payload }) => {
3835
const filters: string[] = []
@@ -130,7 +127,9 @@ class TestRunner {
130127

131128
#buildFilters(payload: RunnerRequestBody) {
132129
const framework = (payload.framework || '').toLowerCase()
133-
const specFile = payload.runAll ? undefined : this.#normaliseSpecFile(payload)
130+
const specFile = payload.runAll
131+
? undefined
132+
: this.#normaliseSpecFile(payload)
134133
const specArg = specFile
135134
? this.#buildSpecArgument(specFile, payload)
136135
: undefined
@@ -178,7 +177,7 @@ class TestRunner {
178177
}
179178

180179
#toFsPath(candidate: string) {
181-
let filePath = candidate.startsWith('file://')
180+
const filePath = candidate.startsWith('file://')
182181
? url.fileURLToPath(candidate)
183182
: candidate
184183
return path.isAbsolute(filePath)

0 commit comments

Comments
 (0)