mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-29 11:00:11 +00:00
[test] Removed gray / grey from test. Removed comments.
This commit is contained in:
parent
c93fd972f7
commit
156930b317
9
test.js
9
test.js
@ -1,12 +1,6 @@
|
||||
var assert = require('assert'),
|
||||
colors = require('./colors');
|
||||
|
||||
//
|
||||
// This is a pretty nice example on how tests shouldn't be written. However,
|
||||
// it's more about API stability than about really testing it (although it's
|
||||
// a pretty complete test suite).
|
||||
//
|
||||
|
||||
var s = 'string';
|
||||
|
||||
function a(s, code) {
|
||||
@ -23,10 +17,9 @@ function aE(s, color, code) {
|
||||
|
||||
function h(s, color) {
|
||||
return '<span style="color:' + color + ';">' + s + '</span>';
|
||||
// that's pretty dumb approach to testing it
|
||||
}
|
||||
|
||||
var stylesColors = ['white', 'grey', 'black', 'blue', 'cyan', 'green', 'magenta', 'red', 'yellow'];
|
||||
var stylesColors = ['white', 'black', 'blue', 'cyan', 'green', 'magenta', 'red', 'yellow'];
|
||||
var stylesAll = stylesColors.concat(['bold', 'italic', 'underline', 'inverse', 'rainbow']);
|
||||
|
||||
colors.mode = 'console';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user