(message)
| 207 | if (__DEV__) { |
| 208 | // eslint-disable-next-line no-inner-declarations |
| 209 | function throwFormattedError(message) { |
| 210 | const error = new Error( |
| 211 | `${chalk.dim(matcherName)}(${chalk.red( |
| 212 | 'expected', |
| 213 | )})\n\n${message.trim()}`, |
| 214 | ); |
| 215 | Error.captureStackTrace(error, assertConsoleLog); |
| 216 | throw error; |
| 217 | } |
| 218 | |
| 219 | // Warn about incorrect usage first arg. |
| 220 | if (!Array.isArray(expectedMessages)) { |
no outgoing calls
no test coverage detected