(actual, expected)
| 109 | } |
| 110 | |
| 111 | function getColoredMyersDiff(actual, expected) { |
| 112 | const header = `${colors.green}actual${colors.white} ${colors.red}expected${colors.white}`; |
| 113 | const skipped = false; |
| 114 | |
| 115 | const diff = myersDiff(StringPrototypeSplit(actual, ''), StringPrototypeSplit(expected, '')); |
| 116 | let message = printSimpleMyersDiff(diff); |
| 117 | |
| 118 | if (skipped) { |
| 119 | message += '...'; |
| 120 | } |
| 121 | |
| 122 | return { message, header, skipped }; |
| 123 | } |
| 124 | |
| 125 | function getStackedDiff(actual, expected) { |
| 126 | const isStringComparison = typeof actual === 'string' && typeof expected === 'string'; |
no test coverage detected
searching dependent graphs…