* Return an `Error` with `msg` and results properties. * * @param {String} msg * @param {Mixed} expected * @param {Mixed} actual * @return {Error} * @api private
(msg, expected, actual)
| 389 | */ |
| 390 | |
| 391 | function error(msg, expected, actual) { |
| 392 | const err = new Error(msg); |
| 393 | err.expected = expected; |
| 394 | err.actual = actual; |
| 395 | err.showDiff = true; |
| 396 | return err; |
| 397 | } |
| 398 | |
| 399 | /** |
| 400 | * Expose `Test`. |
no outgoing calls
no test coverage detected
searching dependent graphs…