1 | var colorful = require('../index');
|
2 | var should = require('should');
|
3 |
|
4 | describe('index', function() {
|
5 | it('should be supported', function() {
|
6 | should.exists(colorful.isSupported);
|
7 | });
|
8 | it('should be red hello', function() {
|
9 | colorful.paint('hello').red.color.should.equal('\x1b[31mhello\x1b[39m');
|
10 | });
|
11 | it('has logging', function() {
|
12 | colorful.logging.info('hello');
|
13 | });
|
14 | });
|
15 |
|