Skip to content

Commit 8ad9f66

Browse files
committed
fix(testlab): fix throw() and rejectedWith() types
1 parent 73f9fb1 commit 8ad9f66

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/testlab/should-as-function.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,17 @@ interface ShouldAssertion {
118118
enumerables(...properties: string[]): ShouldAssertion;
119119
startWith(expected: string, message?: any): ShouldAssertion;
120120
endWith(expected: string, message?: any): ShouldAssertion;
121-
throw(message?: any): ShouldAssertion;
121+
throw(propereties?: {}): ShouldAssertion;
122+
throw(message: Function | string | RegExp, properties?: {}): ShouldAssertion;
122123

123124
//promises
124125
eventually: ShouldAssertion;
125126
finally: ShouldAssertion;
126127
fulfilled(): Promise<any>;
127128
fulfilledWith(value: any): Promise<any>;
128129
rejected(): Promise<any>;
129-
rejectedWith(err: Error | string | RegExp): Promise<any>;
130+
rejectedWith(err: Function | string | RegExp, properties?: {}): Promise<any>;
131+
rejectedWith(properties: {}): Promise<any>;
130132

131133
//http
132134
header(field: string, val?: string): ShouldAssertion;

0 commit comments

Comments
 (0)