(from, to)
| 61 | const maybePlus = (from, to) => from < to ? '+' : ''; |
| 62 | |
| 63 | const absDiff = (from, to) => { |
| 64 | if (from === to) { |
| 65 | return formatBytes(0); |
| 66 | } |
| 67 | |
| 68 | return `${maybePlus(from, to)}${formatBytes(to - from)}`; |
| 69 | }; |
| 70 | |
| 71 | const percDiff = (from, to) => { |
| 72 | if (from === to) { |
no test coverage detected