(actual, expected, msg = '')
| 52 | } |
| 53 | |
| 54 | export function assertEqual(actual, expected, msg = '') { |
| 55 | // I'm sure this is not sufficient |
| 56 | if (actual.length && expected.length) { |
| 57 | assertArrayEqual(actual, expected); |
| 58 | } else if (actual !== expected) { |
| 59 | throw new Error(`${formatMsg(msg)}expected: ${expected} to equal actual: ${actual}`); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | export function assertStrictEqual(actual, expected, msg = '') { |
| 64 | if (actual !== expected) { |
no test coverage detected