mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
Merge pull request #30710 from alex-dev/patch-1
Added a use for expect 'checker' with a callback
This commit is contained in:
Vendored
+1
-1
@@ -24,7 +24,7 @@ declare namespace supertest {
|
||||
serverAddress(app: any, path: string): string;
|
||||
expect(status: number, callback?: CallbackHandler): this;
|
||||
expect(status: number, body: any, callback?: CallbackHandler): this;
|
||||
expect(checker: (res: Response) => any): this;
|
||||
expect(checker: (res: Response) => any, callback?: CallbackHandler): this;
|
||||
expect(body: string, callback?: CallbackHandler): this;
|
||||
expect(body: RegExp, callback?: CallbackHandler): this;
|
||||
expect(body: Object, callback?: CallbackHandler): this;
|
||||
|
||||
Reference in New Issue
Block a user