alsatian
Version:
TypeScript and JavaScript testing framework for beautiful and readable tests
19 lines (18 loc) • 793 B
TypeScript
import { FunctionSpy } from "../spying";
import { FunctionSpyCallCountMatcher } from "./function-spy-call-count-matcher";
export declare class FunctionSpyMatcher {
private _spy;
private _expectedArguments;
constructor(spy: FunctionSpy, expectedArguments?: Array<any>);
exactly(expectedCallCount: number): FunctionSpyCallCountMatcher;
anythingBut(unexpectedCallCount: number): FunctionSpyCallCountMatcher;
greaterThan(minimumCallCount: number): FunctionSpyCallCountMatcher;
lessThan(maximumCallCount: number): FunctionSpyCallCountMatcher;
private _validateCallCount;
private _matchingCallsCount;
private _matchingArguments;
private _match;
private stringifyExpectedCallCount;
private stringifyCallCount;
private stringifyCallCountType;
}