We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f6e134 commit 4a769f8Copy full SHA for 4a769f8
index.js.flow
@@ -58,8 +58,8 @@ type AssertContext = {
58
// Assert that function throws an error or promise rejects.
59
// @param error Can be a constructor, regex, error message or validation function.
60
throws: {
61
- (value: PromiseLike<mixed>, error?: ErrorValidator, message?: string): Promise<Error>;
62
- (value: () => mixed, error?: ErrorValidator, message?: string): Error;
+ (value: PromiseLike<mixed>, error?: ErrorValidator, message?: string): Promise<any>;
+ (value: () => mixed, error?: ErrorValidator, message?: string): any;
63
};
64
// Assert that function doesn't throw an error or promise resolves.
65
notThrows: {
0 commit comments