( received: Array<unknown>, expected?: Array<unknown>, )
| 44 | : expected.map(arg => printExpected(arg)).join(', '); |
| 45 | |
| 46 | const printReceivedArgs = ( |
| 47 | received: Array<unknown>, |
| 48 | expected?: Array<unknown>, |
| 49 | ): string => |
| 50 | received.length === 0 |
| 51 | ? NO_ARGUMENTS |
| 52 | : received |
| 53 | .map((arg, i) => |
| 54 | Array.isArray(expected) && |
| 55 | i < expected.length && |
| 56 | isEqualValue(expected[i], arg) |
| 57 | ? printCommon(arg) |
| 58 | : printReceived(arg), |
| 59 | ) |
| 60 | .join(', '); |
| 61 | |
| 62 | const printCommon = (val: unknown) => DIM_COLOR(stringify(val)); |
| 63 |
no test coverage detected