(
example: ISpecExample,
result: IRunResult,
)
| 154 | * side, with the markdown source as context. |
| 155 | */ |
| 156 | export function formatFailureMessage( |
| 157 | example: ISpecExample, |
| 158 | result: IRunResult, |
| 159 | ): string { |
| 160 | return [ |
| 161 | '', |
| 162 | `--- markdown (${example.section} #${example.number}) ---`, |
| 163 | JSON.stringify(example.markdown), |
| 164 | '--- expected (normalised) ---', |
| 165 | result.normalizedExpected, |
| 166 | '--- actual (normalised) ---', |
| 167 | result.normalizedActual, |
| 168 | '', |
| 169 | ].join('\n'); |
| 170 | } |
no test coverage detected