Keep should and should-promised compatible

This commit is contained in:
Michal Hruby
2017-04-06 09:18:33 +01:00
parent 0ef9f445a4
commit 005c373632
2 changed files with 4 additions and 5 deletions

View File

@@ -5,10 +5,8 @@
interface ShouldAssertion {
Promise: ShouldAssertion;
fulfilled(): ShouldAssertion;
rejected(): ShouldAssertion;
rejectedWith(message: (string | Function | RegExp), properties?: Object): ShouldAssertion;
rejectedWith(message: Object): ShouldAssertion;
fulfilled: Promise<any>;
rejected: Promise<any>;
finally: ShouldAssertion;
eventually: ShouldAssertion;
}

View File

@@ -99,7 +99,8 @@ interface ShouldAssertion {
fulfilled(): Promise<any>;
fulfilledWith(value: any): Promise<any>
rejected(): Promise<any>;
rejectedWith(err: Error | string | RegExp): Promise<any>;
rejectedWith(message: (string | Function | RegExp), properties?: Object): Promise<any>;
rejectedWith(errType: Object): Promise<any>;
//http
header(field: string, val?: string): ShouldAssertion;