Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#71968 [jasmine] Document that the expected…
Browse files Browse the repository at this point in the history
… and actual properties of expecta… by @HolgerJeromin

Co-authored-by: Holger Jeromin <Holger Jeromin [email protected]>
  • Loading branch information
HolgerJeromin and Holger Jeromin authored Feb 21, 2025
1 parent 7d46a91 commit cd44081
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions types/jasmine/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,13 @@ interface ThrowUnlessFailure {
*/
passed: boolean;
/**
* If the expectation failed, what was the expected value.
* Deprecated. If the expectation failed, what was the expected value.
* @deprecated The expected and actual properties are deprecated and may be removed in a future release.
*/
expected: any;
/**
* If the expectation failed, what actual value was produced.
* Deprecated. If the expectation failed, what actual value was produced.
* @deprecated The expected and actual properties are deprecated and may be removed in a future release.
*/
actual: any;
}
Expand Down Expand Up @@ -576,11 +578,31 @@ declare namespace jasmine {
}

interface ExpectationResult extends Result {
/**
* The name of the matcher that was executed for this expectation.
*/
matcherName: string;
/**
* The failure message for the expectation.
*/
message: string;
/**
* The stack trace for the failure if available.
*/
stack: string;
/**
* Whether the expectation passed or failed.
*/
passed: boolean;
/**
* Deprecated. If the expectation failed, what was the expected value.
* @deprecated The expected and actual properties are deprecated and may be removed in a future release.
*/
expected: any;
/**
* Deprecated. If the expectation failed, what actual value was produced.
* @deprecated The expected and actual properties are deprecated and may be removed in a future release.
*/
actual: any;
}

Expand Down

0 comments on commit cd44081

Please sign in to comment.