(
actual: T,
expected: T,
options: EqualErrorMessageOptions = {},
)
| 48 | } |
| 49 | |
| 50 | export function buildNotEqualErrorMessage<T>( |
| 51 | actual: T, |
| 52 | expected: T, |
| 53 | options: EqualErrorMessageOptions = {}, |
| 54 | ): string { |
| 55 | const { formatter = format, msg } = options; |
| 56 | const actualString = formatter(actual); |
| 57 | const expectedString = formatter(expected); |
| 58 | |
| 59 | const msgPrefix = msg ? `${msg}: ` : ""; |
| 60 | return `${msgPrefix}Expected actual: ${actualString} not to be: ${expectedString}.`; |
| 61 | } |
no test coverage detected