piumino
Version:
Piumino, meaning duvet in Italian, is like a duvet over the bed called Angular TestBed. It provides test helpers to test trivial things like inputs and outputs with a single line.
16 lines (15 loc) • 603 B
TypeScript
import { MatcherChainFinisher } from "../types";
import { Matcher } from "./matcher";
export declare class ToCallWithMatcher extends Matcher {
/**
* Expect the called function to be called with the provided values.
* The last of the provided values is dispatched as $event in case of an output.
*
* [input]="func(value)"\
* (output)="func($event)"\
* (output)="func(value, $event)"
*
* @param values - The values to compare with the values that the function was called with.
*/
with(value: unknown, ...rest: unknown[]): MatcherChainFinisher<this>;
}