Merge pull request #1881 from ufon/master

socket.io: added handshake; supertest: override set method.
This commit is contained in:
Igorbek
2014-03-20 11:33:23 -07:00
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -20,6 +20,7 @@ declare module "socket.io" {
log: any;
volatile: any;
broadcast: any;
handshake: any;
in(room: string): Socket;
to(room: string): Socket;
join(name: string, fn: Function): Socket;
+5
View File
@@ -19,6 +19,11 @@ declare module "supertest" {
expect(body: Object, callback?: (err: Error, res: superagent.Response) => void): Test;
expect(field: string, val: string, callback?: (err: Error, res: superagent.Response) => void): Test;
expect(field: string, val: RegExp, callback?: (err: Error, res: superagent.Response) => void): Test;
set(field: string, val: string): Test;
set(field: Object): Test;
query(val: Object): Test;
send(data: string): Test;
send(data: Object): Test;
}
interface SuperTest {