Merge pull request #492 from fsoikin/master

Typos in Sinon and Jasmine
This commit is contained in:
Boris Yankov
2013-04-24 15:54:06 -07:00
2 changed files with 9 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ declare module jasmine {
var Clock: Clock;
function any(aclass: any);
function createSpy(name: string): any;
function createSpy(name: string): Spy;
function createSpyObj(baseName: string, methodNames: any[]): any;
function getEnv(): Env;
@@ -239,9 +239,9 @@ declare module jasmine {
wasCalled: bool;
callCount: number;
andReturn(value): void;
andCallThrough(): void;
andCallFake(fakeFunc: Function): void;
andReturn(value): Spy;
andCallThrough(): Spy;
andCallFake(fakeFunc: Function): Spy;
}
interface Suite {

10
sinon/sinon-1.5.d.ts vendored
View File

@@ -233,19 +233,19 @@ interface SinonFakeServer {
// Methods
respondWith(body: string): void;
respondWith(response: any[]): void;
respondWith(fn: (SinonFakeXMLHttpRequest) => void ): void;
respondWith(fn: (xhr: SinonFakeXMLHttpRequest) => void ): void;
respondWith(url: string, body: string): void;
respondWith(url: string, response: any[]): void;
respondWith(url: string, fn: (SinonFakeXMLHttpRequest) => void ): void;
respondWith(url: string, fn: (xhr: SinonFakeXMLHttpRequest) => void ): void;
respondWith(method: string, url: string, body: string): void;
respondWith(method: string, url: string, response: any[]): void;
respondWith(method: string, url: string, fn: (SinonFakeXMLHttpRequest) => void ): void;
respondWith(method: string, url: string, fn: (xhr: SinonFakeXMLHttpRequest) => void ): void;
respondWith(url: RegExp, body: string): void;
respondWith(url: RegExp, response: any[]): void;
respondWith(url: RegExp, fn: (SinonFakeXMLHttpRequest) => void ): void;
respondWith(url: RegExp, fn: (xhr: SinonFakeXMLHttpRequest) => void ): void;
respondWith(method: string, url: RegExp, body: string): void;
respondWith(method: string, url: RegExp, response: any[]): void;
respondWith(method: string, url: RegExp, fn: (SinonFakeXMLHttpRequest) => void ): void;
respondWith(method: string, url: RegExp, fn: (xhr: SinonFakeXMLHttpRequest) => void ): void;
respond(): void;
restore(): void;
}