Merge pull request #30710 from alex-dev/patch-1

Added a use for expect 'checker' with a callback
This commit is contained in:
Mine Starks
2018-12-03 13:38:56 -08:00
committed by GitHub
+1 -1
View File
@@ -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;