(localResults, remoteMasterResults)
| 94 | } |
| 95 | |
| 96 | function printResults(localResults, remoteMasterResults) { |
| 97 | const head = ['']; |
| 98 | if (remoteMasterResults) { |
| 99 | head.push(chalk.yellow.bold('Remote (Merge Base)')); |
| 100 | } |
| 101 | if (localResults) { |
| 102 | head.push(chalk.green.bold('Local (Current Branch)')); |
| 103 | } |
| 104 | if (localResults && remoteMasterResults) { |
| 105 | head.push(''); |
| 106 | } |
| 107 | const table = new Table({head}); |
| 108 | addBenchmarkResults(table, localResults, remoteMasterResults); |
| 109 | console.log(table.toString()); |
| 110 | } |
| 111 | |
| 112 | module.exports = printResults; |
no test coverage detected