|
1 |
| -const chalk = require('chalk'); |
| 1 | +const kleur = require('kleur'); |
2 | 2 |
|
3 | 3 | const hasOwn = Object.hasOwnProperty;
|
4 | 4 |
|
@@ -140,22 +140,22 @@ module.exports = class TapReporter {
|
140 | 140 | if (test.status === 'passed') {
|
141 | 141 | console.log(`ok ${this.testCount} ${test.fullName.join(' > ')}`);
|
142 | 142 | } else if (test.status === 'skipped') {
|
143 |
| - console.log(chalk.yellow(`ok ${this.testCount} # SKIP ${test.fullName.join(' > ')}`)); |
| 143 | + console.log(kleur.yellow(`ok ${this.testCount} # SKIP ${test.fullName.join(' > ')}`)); |
144 | 144 | } else if (test.status === 'todo') {
|
145 |
| - console.log(chalk.cyan(`not ok ${this.testCount} # TODO ${test.fullName.join(' > ')}`)); |
| 145 | + console.log(kleur.cyan(`not ok ${this.testCount} # TODO ${test.fullName.join(' > ')}`)); |
146 | 146 | test.errors.forEach((error) => this.logError(error, 'todo'));
|
147 | 147 | } else {
|
148 |
| - console.log(chalk.red(`not ok ${this.testCount} ${test.fullName.join(' > ')}`)); |
| 148 | + console.log(kleur.red(`not ok ${this.testCount} ${test.fullName.join(' > ')}`)); |
149 | 149 | test.errors.forEach((error) => this.logError(error));
|
150 | 150 | }
|
151 | 151 | }
|
152 | 152 |
|
153 | 153 | onRunEnd (globalSuite) {
|
154 | 154 | console.log(`1..${globalSuite.testCounts.total}`);
|
155 | 155 | console.log(`# pass ${globalSuite.testCounts.passed}`);
|
156 |
| - console.log(chalk.yellow(`# skip ${globalSuite.testCounts.skipped}`)); |
157 |
| - console.log(chalk.cyan(`# todo ${globalSuite.testCounts.todo}`)); |
158 |
| - console.log(chalk.red(`# fail ${globalSuite.testCounts.failed}`)); |
| 156 | + console.log(kleur.yellow(`# skip ${globalSuite.testCounts.skipped}`)); |
| 157 | + console.log(kleur.cyan(`# todo ${globalSuite.testCounts.todo}`)); |
| 158 | + console.log(kleur.red(`# fail ${globalSuite.testCounts.failed}`)); |
159 | 159 | }
|
160 | 160 |
|
161 | 161 | logError (error, severity) {
|
|
0 commit comments