1'use strict'; 2/*jshint asi: true */ 3var assert = require('assert') 4 , styles = require('../') 5 6function inspect(obj, depth) { 7 console.log(require('util').inspect(obj, false, depth || 5, true)); 8} 9 10assert.equal(styles.reset('reset'), '\u001b[0mreset\u001b[22m', 'reset') 11assert.equal(styles.underline('underlined'), '\u001b[4munderlined\u001b[24m', 'underline') 12assert.equal(styles.bright('bright'), '\u001b[1mbright\u001b[22m', 'bright') 13assert.equal(styles.inverse('inversed'), '\u001b[7minversed\u001b[27m', 'inverse') 14 15console.log('OK'); 16