Skip to content

Refactor assertions #1302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 14, 2017
2 changes: 1 addition & 1 deletion index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type AssertContext = {
};
// Assert that function doesn't throw an error or promise resolves.
notThrows: {
<U>(value: PromiseLike<U>, message?: string): Promise<U>;
(value: PromiseLike<mixed>, message?: string): Promise<void>;
(value: () => mixed, message?: string): void;
};
// Assert that contents matches regex.
Expand Down
Loading