source-scraper-test-utils
Version:
Test Utils for the SourceScraper-Project
14 lines (13 loc) • 356 B
TypeScript
import 'mocha';
export declare type ITestExec = () => any;
export interface ITest {
title: string;
exec: ITestExec;
}
export declare abstract class Tester<T> {
tests: ITest[];
run(): void;
addTest(title: string, exec: ITestExec): this;
protected runTest(test: ITest): this;
protected abstract getTestTarget(): T;
}