( actual: T, expected: T, options?: EqualOptions, )
| 25 | * Note: formatter option is experimental and may be removed in the future. |
| 26 | */ |
| 27 | export function assertEquals<T>( |
| 28 | actual: T, |
| 29 | expected: T, |
| 30 | options?: EqualOptions, |
| 31 | ) { |
| 32 | if (equal(actual, expected, options)) { |
| 33 | return; |
| 34 | } |
| 35 | |
| 36 | const message = buildEqualErrorMessage(actual, expected, options ?? {}); |
| 37 | throw new AssertionError(message); |
| 38 | } |
no test coverage detected