Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /opt/push-server/node_modules/kuler/ |
Upload File : |
const { it, describe } = require('mocha'); const assume = require('assume'); const kuler = require('./'); describe('kuler', function () { it('renders colors in the terminal', function () { console.log(' VISUAL INSPECTION'); console.log(' '+ kuler('red').style('F00')); console.log(' '+ kuler('black').style('#000')); console.log(' '+ kuler('white').style('#FFFFFF')); console.log(' '+ kuler('lime').style('AAFF5B')); console.log(' '+ kuler('violet').style('#ee82ee')); console.log(' '+ kuler('purple').style('#800080')); console.log(' '+ kuler('purple').style('#800080'), 'correctly reset to normal color'); console.log(' '+ kuler('green', '#008000')); }); describe('#style', function () { it('has a style method', function () { assume(kuler('what').style).is.a('function'); }); }); });