@drozdik.m/unit-test
Version:
Unit test with test cases with Assert functions. Simple and easy.
23 lines (22 loc) • 629 B
TypeScript
import { TestCase } from "./TestCase";
export declare class AsyncTestCase extends TestCase {
private callbackFunction;
private isRunning;
/**
* Creates new instance of AsyncTestCase
* @param name Name of the test case
* @param useCaseFunction Function to run
* @param callbackFunction Function called on test case done
*/
constructor(name: string, useCaseFunction: Function, callbackFunction: Function);
Run(): void;
/**
* Success callback
* */
Done(): void;
/**
* Fail callback
* */
Fail(): void;
IsRunning(): boolean;
}