mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-23 00:40:10 +00:00
Replace chalk with colors in tests.
This commit is contained in:
parent
cb14452df3
commit
b96526da31
@ -6,8 +6,7 @@ var chai = require('chai')
|
|||||||
, _ = require('underscore')
|
, _ = require('underscore')
|
||||||
, FRESHResume = require('../src/core/fresh-resume')
|
, FRESHResume = require('../src/core/fresh-resume')
|
||||||
, FCMD = require( '../src/hackmycmd')
|
, FCMD = require( '../src/hackmycmd')
|
||||||
, validator = require('is-my-json-valid')
|
, validator = require('is-my-json-valid');
|
||||||
, COLORS = require('colors');
|
|
||||||
|
|
||||||
chai.config.includeStack = false;
|
chai.config.includeStack = false;
|
||||||
|
|
||||||
@ -19,17 +18,6 @@ describe('Testing CLI interface', function () {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
COLORS.setTheme({
|
|
||||||
title: ['white','bold'],
|
|
||||||
info: process.platform === 'win32' ? 'gray' : ['white','dim'],
|
|
||||||
infoBold: ['white','dim'],
|
|
||||||
warn: 'yellow',
|
|
||||||
error: 'red',
|
|
||||||
guide: 'yellow',
|
|
||||||
status: 'gray',//['white','dim'],
|
|
||||||
useful: 'green',
|
|
||||||
});
|
|
||||||
|
|
||||||
var opts = {
|
var opts = {
|
||||||
//theme: 'compact',
|
//theme: 'compact',
|
||||||
format: 'FRESH',
|
format: 'FRESH',
|
||||||
|
@ -7,8 +7,7 @@ var SPAWNWATCHER = require('../src/core/spawn-watch')
|
|||||||
, _ = require('underscore')
|
, _ = require('underscore')
|
||||||
, FRESHResume = require('../src/core/fresh-resume')
|
, FRESHResume = require('../src/core/fresh-resume')
|
||||||
, FCMD = require( '../src/hackmycmd')
|
, FCMD = require( '../src/hackmycmd')
|
||||||
, validator = require('is-my-json-valid')
|
, validator = require('is-my-json-valid');
|
||||||
, COLORS = require('colors');
|
|
||||||
|
|
||||||
chai.config.includeStack = false;
|
chai.config.includeStack = false;
|
||||||
|
|
||||||
@ -18,17 +17,6 @@ function genThemes( title, src, fmt ) {
|
|||||||
|
|
||||||
var _sheet;
|
var _sheet;
|
||||||
|
|
||||||
COLORS.setTheme({
|
|
||||||
title: ['white','bold'],
|
|
||||||
info: process.platform === 'win32' ? 'gray' : ['white','dim'],
|
|
||||||
infoBold: ['white','dim'],
|
|
||||||
warn: 'yellow',
|
|
||||||
error: 'red',
|
|
||||||
guide: 'yellow',
|
|
||||||
status: 'gray',//['white','dim'],
|
|
||||||
useful: 'green',
|
|
||||||
});
|
|
||||||
|
|
||||||
function genTheme( fmt, src, themeName, themeLoc, testTitle ) {
|
function genTheme( fmt, src, themeName, themeLoc, testTitle ) {
|
||||||
themeLoc = themeLoc || themeName;
|
themeLoc = themeLoc || themeName;
|
||||||
testTitle = themeName.toUpperCase() + ' theme (' + fmt + ') should generate without throwing an exception';
|
testTitle = themeName.toUpperCase() + ' theme (' + fmt + ') should generate without throwing an exception';
|
||||||
|
Loading…
Reference in New Issue
Block a user