Skip to content

Commit d9b3ec8

Browse files
committed
large upgrade for testing library.
1 parent 0f16989 commit d9b3ec8

21 files changed

+272
-125
lines changed

dist/spec/index.test.js

Lines changed: 4 additions & 4 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/Arguments.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
export declare class Arg {
22
static any(): any;
3-
static any<T extends 'string'>(type: T): Arg & string;
4-
static any<T extends 'number'>(type: T): Arg & number;
5-
static any<T extends 'boolean'>(type: T): Arg & boolean;
6-
static any<T extends 'array'>(type: T): Arg & any[];
7-
static any<T extends 'function'>(type: T): Arg & Function;
3+
static any<T extends 'string'>(type: T): Argument<string> & string;
4+
static any<T extends 'number'>(type: T): Argument<number> & number;
5+
static any<T extends 'boolean'>(type: T): Argument<boolean> & boolean;
6+
static any<T extends 'array'>(type: T): Argument<any[]> & any[];
7+
static any<T extends 'function'>(type: T): Argument<Function> & Function;
88
static any<T extends 'string' | 'number' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function' | 'array'>(type: T): any;
9-
static is<T>(predicate: (input: T) => boolean): Argument<T>;
9+
static is<T>(predicate: (input: T) => boolean): Argument<T> & T;
1010
private static toStringify;
1111
}
1212
export declare class Argument<T> {

dist/src/Arguments.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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@ export declare class ProxyCallRecords {
2727
export declare class ProxyExpectation {
2828
callCount: number;
2929
negated: boolean;
30+
propertyName: string;
31+
arguments: Array<any>;
3032
constructor();
3133
}
3234
export declare class ProxyObjectContext {
3335
property: ProxyPropertyContext | ProxyMethodPropertyContext;
3436
calls: ProxyCallRecords;
3537
constructor();
3638
setExpectations(count: number, negated: boolean): void;
37-
findActualPropertyCall(propertyName: string): ProxyCallRecord;
38-
findActualMethodCall(propertyName: string, args: any[]): ProxyCallRecord;
39+
findActualPropertyCalls(propertyName: string): ProxyCallRecord[];
40+
findActualMethodCalls(propertyName: string, args: any[]): ProxyCallRecord[];
41+
getLastCall(): ProxyCallRecord;
3942
addActualPropertyCall(): ProxyCallRecord;
4043
}
4144
export declare class ProxyCallRecord {

dist/src/Context.js

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

dist/src/Context.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/Index.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/Substitute.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ObjectSubstitute } from "./Transformations";
22
export declare class Substitute {
33
static for<T>(): ObjectSubstitute<T>;
4-
private static doesExistingCallMatchCount;
4+
private static assertCallMatchCount;
55
}

0 commit comments

Comments
 (0)