From 56a4a19e610e733aff2face10be8e4ef0be20c36 Mon Sep 17 00:00:00 2001 From: gstamac Date: Mon, 19 Aug 2013 16:29:38 +0200 Subject: [PATCH] Jasmine: added jasmine.objectContaining --- jasmine/jasmine.d.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/jasmine/jasmine.d.ts b/jasmine/jasmine.d.ts index d36a1f95b9..79ebfa0e3a 100644 --- a/jasmine/jasmine.d.ts +++ b/jasmine/jasmine.d.ts @@ -29,6 +29,7 @@ declare module jasmine { var Clock: Clock; function any(aclass: any):any; + function objectContaining(sample: any): ObjectContaining; function createSpy(name: string, originalFn: Function): Spy; function createSpyObj(baseName: string, methodNames: any[]): any; function pp(value: any): string; @@ -42,6 +43,13 @@ declare module jasmine { jasmineToString():any; } + interface ObjectContaining { + new (sample: any): any; + + jasmineMatches(other: any, mismatchKeys: any[], mismatchValues: any[]): any; + jasmineToString(): any; + } + interface Block { new (env: Env, func: Function, spec: Spec):any; @@ -215,6 +223,18 @@ declare module jasmine { new (env: Env, suite: Suite, description: string):any; + id: number; + env: Env; + suite: Suite; + description: string; + queue: Queue; + + afterCallbacks: any; + spies_: any; + + results_: NestedResults; + matchersClass: any; + getFullName(): string; results():any; log():any;