15 lines
381 B
JavaScript
15 lines
381 B
JavaScript
var chalk = require('./');
|
|
|
|
suite('chalk', function () {
|
|
bench('single style', function () {
|
|
chalk.red('the fox jumps over the lazy dog');
|
|
});
|
|
|
|
bench('several styles', function () {
|
|
chalk.blue.bgRed.bold('the fox jumps over the lazy dog');
|
|
});
|
|
|
|
bench('nested styles', function () {
|
|
chalk.red('the fox jumps', chalk.underline.bgBlue('over the lazy dog') + '!');
|
|
});
|
|
});
|