@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 (17 loc) • 467 B
text/typescript
import type { DiffFormatter } from './DiffFormatter';
/**
* A no-op [`DiffFormatter`](https://serenity-js.org/api/core/interface/DiffFormatter/) that produces output identical to input.
*
* @group Errors
*/
export class NoOpDiffFormatter implements DiffFormatter {
expected(line: string): string {
return line;
}
received(line: string): string {
return line;
}
unchanged(line: string): string {
return line;
}
}