alsatian
Version:
TypeScript and JavaScript testing framework for beautiful and readable tests
7 lines (6 loc) • 401 B
TypeScript
import { MatcherOrType } from "./matcher-or-type";
export interface ISpyMatcher<ExpectedType extends object> {
thatMatches<Key extends keyof ExpectedType>(key: Key, value: ExpectedType[Key]): MatcherOrType<ExpectedType>;
thatMatches(properties: Partial<ExpectedType>): MatcherOrType<ExpectedType>;
thatMatches(delegate: (argument: ExpectedType) => boolean): MatcherOrType<ExpectedType>;
}