1 | import { SpyCall } from "./spy-call";
|
2 | export declare class PropertySpy<PropertyType> {
|
3 | private _originialGetter;
|
4 | private _originialSetter;
|
5 | private _value;
|
6 | private _descriptorTarget;
|
7 | private _getter;
|
8 | private _setter;
|
9 | private _returnValue;
|
10 | private _propertyName;
|
11 | private _getCalls;
|
12 | private _setCalls;
|
13 | get setCalls(): SpyCall[];
|
14 | constructor(target: any, propertyName: string);
|
15 | andReturnValue(value: PropertyType): PropertySpy<PropertyType>;
|
16 | andCallGetter(getter: () => PropertyType): PropertySpy<PropertyType>;
|
17 | andCallSetter(setter: (value: PropertyType) => void): PropertySpy<PropertyType>;
|
18 | restore(): void;
|
19 | private _get;
|
20 | private _set;
|
21 | }
|