bench - minor code style tweaks

This commit is contained in:
Sindre Sorhus 2014-07-04 22:29:02 +02:00
parent 0dde0473e0
commit d255f42a9e

View file

@ -1,20 +1,15 @@
// ran through matcha
// ./node_modules/matcha/bin/matcha benchmark.js
var chalk = require('./');
var chalk = require('./index.js');
suite('chalk', function(){
bench('add colour', function(){
suite('chalk', function () {
bench('single style', function () {
chalk.red('the fox jumps over the lazy dog');
});
bench('add several styles', function(){
chalk.blue.bgRed.bold('the fox jumps over the lazy dog') ;
bench('several styles', function () {
chalk.blue.bgRed.bold('the fox jumps over the lazy dog');
});
bench('add nested styles', function(){
chalk.red('the fox jumps ', chalk.underline.bgBlue('over the lazy dog') + '!') ;
bench('nested styles', function () {
chalk.red('the fox jumps', chalk.underline.bgBlue('over the lazy dog') + '!');
});
});