lint: fix linting issues

This commit is contained in:
Martin Fillafer 2024-07-01 16:23:25 +02:00
parent 58976f3a64
commit 24bbe17d84
2 changed files with 4 additions and 18 deletions

View file

@ -4,10 +4,7 @@ import {FileContent, InputProvider, ReportInput} from './input-provider'
import {listFiles} from '../utils/git'
export class LocalFileProvider implements InputProvider {
constructor(
readonly name: string,
readonly pattern: string[]
) {}
constructor(readonly name: string, readonly pattern: string[]) {}
async load(): Promise<ReportInput> {
const result: FileContent[] = []

View file

@ -1,11 +1,7 @@
import {DEFAULT_LOCALE} from './utils/node-utils'
export class TestRunResult {
constructor(
readonly path: string,
readonly suites: TestSuiteResult[],
private totalTime?: number
) {}
constructor(readonly path: string, readonly suites: TestSuiteResult[], private totalTime?: number) {}
get tests(): number {
return this.suites.reduce((sum, g) => sum + g.tests, 0)
@ -44,11 +40,7 @@ export class TestRunResult {
}
export class TestSuiteResult {
constructor(
readonly name: string,
readonly groups: TestGroupResult[],
private totalTime?: number
) {}
constructor(readonly name: string, readonly groups: TestGroupResult[], private totalTime?: number) {}
get tests(): number {
return this.groups.reduce((sum, g) => sum + g.tests.length, 0)
@ -86,10 +78,7 @@ export class TestSuiteResult {
}
export class TestGroupResult {
constructor(
readonly name: string | undefined | null,
readonly tests: TestCaseResult[]
) {}
constructor(readonly name: string | undefined | null, readonly tests: TestCaseResult[]) {}
get passed(): number {
return this.tests.reduce((sum, t) => (t.result === 'success' ? sum + 1 : sum), 0)