diff --git a/src/input-providers/local-file-provider.ts b/src/input-providers/local-file-provider.ts index e1afd8c..e18e9f5 100644 --- a/src/input-providers/local-file-provider.ts +++ b/src/input-providers/local-file-provider.ts @@ -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 { const result: FileContent[] = [] diff --git a/src/test-results.ts b/src/test-results.ts index bca8c41..97cf3b4 100644 --- a/src/test-results.ts +++ b/src/test-results.ts @@ -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)