Skip to content

Commit 7278c78

Browse files
committed
updates to framework.
1 parent a02df9d commit 7278c78

23 files changed

+569
-15
lines changed

dist/spec/index.test.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export declare class Example {
2+
a: string;
3+
c(arg1: string, arg2: string): string;
4+
readonly d: number;
5+
v: any;
6+
}

dist/spec/index.test.js

Lines changed: 74 additions & 0 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 & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/Arguments.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export declare class Arg {
2+
private description;
3+
private matchingFunction;
4+
private constructor();
5+
matches(arg: any): boolean;
6+
toString(): string;
7+
inspect(): string;
8+
static any(): any;
9+
static any<T extends 'string' | 'number' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function' | 'array'>(type: T): any;
10+
static is<T>(value: T): any;
11+
static is<T>(predicate: (input: T) => boolean): any;
12+
private static toStringify;
13+
}

dist/src/Arguments.js

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

dist/src/Arguments.js.map

Lines changed: 1 addition & 0 deletions
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: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
export declare abstract class ProxyPropertyContextBase {
2+
name: string;
3+
type: 'function' | 'object';
4+
access: 'write' | 'read';
5+
constructor();
6+
}
7+
export declare class ProxyPropertyContext extends ProxyPropertyContextBase {
8+
type: 'object';
9+
returnValues: any[];
10+
constructor();
11+
promoteToMethod(): ProxyMethodPropertyContext;
12+
}
13+
export declare class ProxyMethodPropertyContext extends ProxyPropertyContextBase {
14+
method: ProxyMethodContext;
15+
type: 'function';
16+
constructor();
17+
}
18+
export declare class ProxyMethodContext {
19+
arguments: any[];
20+
returnValues: any[];
21+
constructor();
22+
}
23+
export declare class ProxyCallRecords {
24+
expected: ProxyExpectation;
25+
actual: ProxyCallRecord[];
26+
constructor();
27+
}
28+
export declare class ProxyExpectation {
29+
callCount: number;
30+
negated: boolean;
31+
constructor();
32+
}
33+
export declare class ProxyObjectContext {
34+
property: ProxyPropertyContext | ProxyMethodPropertyContext;
35+
calls: ProxyCallRecords;
36+
constructor();
37+
setExpectations(count: number, negated: boolean): void;
38+
findActualPropertyCall(propertyName: string, access: 'read' | 'write'): ProxyCallRecord;
39+
findActualMethodCall(propertyName: string, args: any[]): ProxyCallRecord;
40+
addActualPropertyCall(): void;
41+
private findCall;
42+
}
43+
export declare class ProxyCallRecord {
44+
callCount: number;
45+
property: ProxyPropertyContext | ProxyMethodPropertyContext;
46+
constructor(property?: ProxyPropertyContext | ProxyMethodPropertyContext);
47+
}

0 commit comments

Comments
 (0)