Skip to content

Commit 8182f41

Browse files
committed
fix: linting issues
1 parent 34751f2 commit 8182f41

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/reporters/console.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const getExpectedString = (ex: ExampleCall) => {
1818
return ex.expectedResult ? exRes : resSchemaID;
1919
};
2020

21-
class ConsoleReporter extends Reporter {
21+
class ConsoleReporter implements Reporter {
2222

2323
onBegin(options: IOptions, exampleCalls: ExampleCall[]) {}
2424
onTestBegin(options: IOptions, exampleCall: ExampleCall) {}

src/reporters/emptyReporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ExampleCall, IOptions } from '../coverage';
22
import Reporter from './reporter';
33

4-
class EmptyReporter extends Reporter {
4+
class EmptyReporter implements Reporter {
55
onBegin(options: IOptions, exampleCalls: ExampleCall[]) {
66
console.log(`Starting the run with ${exampleCalls.length} tests`);
77
}

src/reporters/json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ExampleCall, IOptions } from '../coverage';
22
import Reporter from './reporter';
33

4-
class JsonReporter extends Reporter {
4+
class JsonReporter implements Reporter {
55
onBegin(options: IOptions, exampleCalls: ExampleCall[]) {}
66
onTestBegin(options: IOptions, exampleCall: ExampleCall) {}
77

src/reporters/raw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ExampleCall, IOptions } from '../coverage';
22
import Reporter from './reporter';
33

4-
class RawReporter extends Reporter {
4+
class RawReporter implements Reporter {
55
onBegin(options: IOptions, exampleCalls: ExampleCall[]) {}
66
onTestBegin(options: IOptions, exampleCall: ExampleCall) {}
77

src/reporters/reporter.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { ExampleCall, IOptions } from "../coverage";
22

3-
abstract class Reporter {
4-
onBegin(options: IOptions, exampleCalls: ExampleCall[]) {}
5-
onTestBegin(options: IOptions, exampleCall: ExampleCall) {}
6-
onTestEnd(options: IOptions, exampleCall: ExampleCall) {}
7-
onEnd(options: IOptions, exampleCalls: ExampleCall[]) {}
3+
interface Reporter {
4+
onBegin(options: IOptions, exampleCalls: ExampleCall[]): void;
5+
onTestBegin(options: IOptions, exampleCall: ExampleCall): void;
6+
onTestEnd(options: IOptions, exampleCall: ExampleCall): void;
7+
onEnd(options: IOptions, exampleCalls: ExampleCall[]): void;
88
}
99

1010
export default Reporter;

0 commit comments

Comments
 (0)