File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ export type Constructor = (new (...args: Array<any>) => any);
66
77/** Specify one or more expectations the thrown error must satisfy. */
88export type ThrowsExpectation = {
9+ /** The thrown error must have a code that equals the given string. */
10+ code ?: string ;
11+
912 /** The thrown error must be an instance of this constructor. */
1013 instanceOf ?: Constructor ;
1114
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ export type Constructor = Class<{constructor(...args: Array<any>): any}>;
1414
1515/** Specify one or more expectations the thrown error must satisfy. */
1616export type ThrowsExpectation = {
17+ /** The thrown error must have a code that equals the given string. */
18+ code?: string;
19+
1720 /** The thrown error must be an instance of this constructor. */
1821 instanceOf?: Constructor;
1922
You can’t perform that action at this time.
0 commit comments