Add spyOnProperty to jasmine (#14965)

* Add spyOnProperty

* Incremented version in header
This commit is contained in:
evenflow58
2017-03-10 01:15:18 -05:00
committed by Mohamed Hegazy
parent a4f4d71344
commit f817f2f75e

5
jasmine/index.d.ts vendored
View File

@@ -1,4 +1,4 @@
// Type definitions for Jasmine 2.5
// Type definitions for Jasmine 2.5.2
// Project: http://jasmine.github.io/
// Definitions by: Boris Yankov <https://github.com/borisyankov/>, Theodore Brown <https://github.com/theodorejb>, David Pärsson <https://github.com/davidparsson/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -38,6 +38,8 @@ interface DoneFn extends Function {
declare function spyOn<T>(object: T, method: keyof T): jasmine.Spy;
declare function spyOnProperty<T>(object: T, property: keyof T, accessType: string): jasmine.Spy;
declare function runs(asyncMethod: Function): void;
declare function waitsFor(latchMethod: () => boolean, failureMessage?: string, timeout?: number): void;
declare function waits(timeout?: number): void;
@@ -455,6 +457,7 @@ declare namespace jasmine {
addBeforesAndAftersToQueue(): void;
explodes(): void;
spyOn(obj: any, methodName: string, ignoreMethodDoesntExist: boolean): Spy;
spyOnProperty(object: any, property: string, accessType: string): Spy;
removeAllSpies(): void;
throwOnExpectationFailure: boolean;
}