mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update jasmine.d.ts
Made jasmine.Spy callable. Added missing "pp" method and internal Matcher properties. Both important for rolling custom matchers.
This commit is contained in:
Vendored
+10
-2
@@ -31,7 +31,7 @@ declare module jasmine {
|
||||
function any(aclass: any);
|
||||
function createSpy(name: string): Spy;
|
||||
function createSpyObj(baseName: string, methodNames: any[]): any;
|
||||
|
||||
function pp(value: any): string;
|
||||
function getEnv(): Env;
|
||||
|
||||
interface Any {
|
||||
@@ -145,6 +145,12 @@ declare module jasmine {
|
||||
|
||||
new (env: Env, actual, spec: Env, isNot?: bool);
|
||||
|
||||
env: Env;
|
||||
actual: any;
|
||||
spec: Env;
|
||||
isNot?: bool;
|
||||
message(): any;
|
||||
|
||||
toBe(expected): bool;
|
||||
toNotBe(expected): bool;
|
||||
toEqual(expected): bool;
|
||||
@@ -232,6 +238,8 @@ declare module jasmine {
|
||||
}
|
||||
|
||||
interface Spy {
|
||||
(...params: any[]): any;
|
||||
|
||||
identity: string;
|
||||
calls: any[];
|
||||
mostRecentCall: { args: any[]; };
|
||||
@@ -295,4 +303,4 @@ declare module jasmine {
|
||||
}
|
||||
|
||||
export var HtmlReporter: any;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user