mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
17 lines
457 B
JavaScript
17 lines
457 B
JavaScript
/*global describe:true, it: true */
|
|
var colour = require('../../lib/utils/colour'),
|
|
assert = require('assert');
|
|
|
|
describe('utils colour', function () {
|
|
it('should colour strings', function () {
|
|
var red = colour('red', 'foo');
|
|
assert(red.indexOf('\x1B') !== -1);
|
|
});
|
|
|
|
it('should strip colours strings', function () {
|
|
var red = colour('red', 'foo');
|
|
|
|
var plain = colour.strip(red);
|
|
assert(plain.indexOf('\x1B') === -1);
|
|
});
|
|
}); |