Skip to content

Commit fa6f4a3

Browse files
author
Mathias Lorenzen
committed
upgraded stuff.
1 parent 839e368 commit fa6f4a3

19 files changed

+464
-277
lines changed

dist/spec/index.test.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/spec/index.test.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/Context.d.ts

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,46 @@
1-
export declare class ProxyPropertyContext {
1+
export declare abstract class ProxyPropertyContextBase {
22
name: string;
33
type: 'function' | 'object';
44
access: 'write' | 'read';
5+
constructor();
6+
}
7+
export declare class ProxyReturnValues {
8+
valueSequence: any[];
9+
currentSequenceOffset: number;
10+
constructor(...args: any[]);
11+
}
12+
export declare class ProxyPropertyContext extends ProxyPropertyContextBase {
13+
type: 'object';
14+
returnValues: ProxyReturnValues;
15+
}
16+
export declare class ProxyMethodPropertyContext extends ProxyPropertyContextBase {
17+
method: ProxyMethodContext;
18+
type: 'function';
19+
constructor();
520
}
621
export declare class ProxyMethodContext {
722
arguments: any[];
23+
returnValues: ProxyReturnValues;
24+
constructor();
825
}
926
export declare class ProxyCallRecords {
10-
expected: ProxyCallRecord[];
27+
expected: ProxyCallRecord;
1128
actual: ProxyCallRecord[];
29+
constructor();
1230
}
1331
export declare class ProxyObjectContext {
1432
property: ProxyPropertyContext;
15-
method: ProxyMethodContext;
1633
calls: ProxyCallRecords;
34+
constructor();
35+
setExpectedCallCount(count: number): void;
36+
findExpectedCall(propertyName: string, access: 'read' | 'write'): any;
37+
findActualCall(propertyName: string, access: 'read' | 'write'): ProxyCallRecord;
38+
addActualCall(...args: any[]): void;
39+
private findCall;
40+
private addCall;
1741
}
1842
export declare class ProxyCallRecord {
19-
arguments?: Array<any>;
2043
callCount: number;
44+
property: ProxyPropertyContext | ProxyMethodPropertyContext;
45+
constructor(property?: ProxyPropertyContext | ProxyMethodPropertyContext);
2146
}

dist/src/Context.js

Lines changed: 105 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)