UNPKG

793 BTypeScriptView Raw
1import { FunctionSpy } from "../spying";
2import { FunctionSpyCallCountMatcher } from "./function-spy-call-count-matcher";
3export declare class FunctionSpyMatcher {
4 private _spy;
5 private _expectedArguments;
6 constructor(spy: FunctionSpy, expectedArguments?: Array<any>);
7 exactly(expectedCallCount: number): FunctionSpyCallCountMatcher;
8 anythingBut(unexpectedCallCount: number): FunctionSpyCallCountMatcher;
9 greaterThan(minimumCallCount: number): FunctionSpyCallCountMatcher;
10 lessThan(maximumCallCount: number): FunctionSpyCallCountMatcher;
11 private _validateCallCount;
12 private _matchingCallsCount;
13 private _matchingArguments;
14 private _match;
15 private stringifyExpectedCallCount;
16 private stringifyCallCount;
17 private stringifyCallCountType;
18}