19 lines
303 B
TypeScript
19 lines
303 B
TypeScript
|
export interface Test {
|
||
|
name(): string;
|
||
|
test(ip: string): Promise<TestResult>;
|
||
|
}
|
||
|
|
||
|
export enum TestResult {
|
||
|
PASS,
|
||
|
FAIL,
|
||
|
WARN,
|
||
|
ERROR,
|
||
|
}
|
||
|
|
||
|
export const TestResultStrings = {
|
||
|
[TestResult.PASS]: "PASS",
|
||
|
[TestResult.FAIL]: "FAIL",
|
||
|
[TestResult.WARN]: "WARN",
|
||
|
[TestResult.ERROR]: "ERROR",
|
||
|
};
|