@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
21 lines (18 loc) • 672 B
text/typescript
import { TinyType } from 'tiny-types';
import type { ExpectationDetails } from './ExpectationDetails';
/**
* An outcome of an [`Expectation`](https://serenity-js.org/api/core/class/Expectation/),
* which could be either [met](https://serenity-js.org/api/core/class/ExpectationMet/) or [not met](https://serenity-js.org/api/core/class/ExpectationNotMet/).
*
* @group Expectations
*/
export class ExpectationOutcome extends TinyType {
constructor(
public readonly message: string,
public readonly expectation: ExpectationDetails,
public readonly expected: unknown,
public readonly actual: unknown,
) {
super();
}
}