Skip to content

Commit 673f81c

Browse files
committed
Fix type comment for message expectation
1 parent b91f7e0 commit 673f81c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type ThrowsExpectation = {
1515
/** The thrown error must be strictly equal to this value. */
1616
is?: Error;
1717

18-
/** The thrown error must have an error that equals the given string, or matches the regular expression. */
18+
/** The thrown error must have a message that equals the given string, or matches the regular expression. */
1919
message?: string | RegExp;
2020

2121
/** The thrown error must have a name that equals the given string. */

index.js.flow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export type ThrowsExpectation = {
2323
/** The thrown error must be strictly equal to this value. */
2424
is?: Error;
2525

26-
/** The thrown error must have an error that equals the given string, or matches the regular expression. */
26+
/** The thrown error must have a message that equals the given string, or matches the regular expression. */
2727
message?: string | RegExp;
2828

2929
/** The thrown error must have a name that equals the given string. */

0 commit comments

Comments
 (0)