From 2fc878b4828869ed27715dab58c78eb99ffcb57a Mon Sep 17 00:00:00 2001 From: Fyodor Soikin Date: Sun, 21 Apr 2013 18:18:25 -0400 Subject: [PATCH] Typo: no param name for "xhr" param in respondWith on fakeServer --- sinon/sinon-1.5.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sinon/sinon-1.5.d.ts b/sinon/sinon-1.5.d.ts index 7b0b43c58d..cb776563ad 100644 --- a/sinon/sinon-1.5.d.ts +++ b/sinon/sinon-1.5.d.ts @@ -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; }