From 777e7d1b1d6c6250d6fba52ea9e6841f7a6b5e9d Mon Sep 17 00:00:00 2001 From: Tom Peres Date: Sun, 31 Jan 2016 20:40:15 +0200 Subject: [PATCH] updated SpyAnd return values --- jasmine/jasmine.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jasmine/jasmine.d.ts b/jasmine/jasmine.d.ts index b17c68d8b..e94cc262e 100644 --- a/jasmine/jasmine.d.ts +++ b/jasmine/jasmine.d.ts @@ -423,11 +423,11 @@ declare module jasmine { /** By chaining the spy with and.callThrough, the spy will still track all calls to it but in addition it will delegate to the actual implementation. */ callThrough(): Spy; /** By chaining the spy with and.returnValue, all calls to the function will return a specific value. */ - returnValue(val: any): void; + returnValue(val: any): Spy; /** By chaining the spy with and.callFake, all calls to the spy will delegate to the supplied function. */ callFake(fn: Function): Spy; /** By chaining the spy with and.throwError, all calls to the spy will throw the specified value. */ - throwError(msg: string): void; + throwError(msg: string): Spy; /** When a calling strategy is used for a spy, the original stubbing behavior can be returned at any time with and.stub. */ stub(): Spy; }