mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
Add spyOnProperty to jasmine (#14965)
* Add spyOnProperty * Incremented version in header
This commit is contained in:
committed by
Mohamed Hegazy
parent
a4f4d71344
commit
f817f2f75e
5
jasmine/index.d.ts
vendored
5
jasmine/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user