@angular-package/testing
Version:
Jasmine unit testing wrapper with additional custom testing features.
10 lines (9 loc) • 644 B
TypeScript
import { Expect } from '../expect.class';
import { ExpectType } from '../../type/expect-type.type';
export declare class TestingExpectToHaveBeenCalled extends Expect {
before<T extends jasmine.Func>(spy: ExpectType<T>, expected: jasmine.Func, expectationFailOutput?: any): this;
called<T extends jasmine.Func>(spy: ExpectType<T>, expectationFailOutput?: any): this;
onceWith<T extends jasmine.Func>(spy: ExpectType<T>, ...params: any[]): this;
times<T extends jasmine.Func>(spy: ExpectType<T>, expected: number, expectationFailOutput?: any): this;
with<T extends jasmine.Func>(spy: ExpectType<T>, ...params: any[]): this;
}