(type, string)
| 80 | |
| 81 | // styling for different console logs |
| 82 | function printLine(type, string) { |
| 83 | switch (type) { |
| 84 | case 'heading': |
| 85 | log(chalk.black.bgWhite.dim(string)); |
| 86 | log(''); |
| 87 | break; |
| 88 | case 'pass': |
| 89 | log(chalk.green.bold(string)); |
| 90 | break; |
| 91 | case 'fail': |
| 92 | log(chalk.red.bold(string)); |
| 93 | break; |
| 94 | case 'suggestion': |
| 95 | log(chalk.gray(string)); |
| 96 | break; |
| 97 | case 'line': |
| 98 | log(''); |
| 99 | log(chalk.gray('-----------------------------------------------------------------------------------')); |
| 100 | log(''); |
| 101 | break; |
| 102 | default: |
| 103 | break; |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | let indentD = ' $ '; |
| 108 | let indent = ' '; |
no outgoing calls
no test coverage detected