mirror of
https://github.com/flynx/colors.js.git
synced 2026-01-10 13:27:48 +00:00
style nits
This commit is contained in:
parent
c13ff984bb
commit
410397a5fb
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
**/*.sw*
|
||||||
@ -1,5 +1,5 @@
|
|||||||
var assert = require('assert'),
|
var assert = require('assert'),
|
||||||
colors = require('../lib/index');
|
colors = require('../lib/index');
|
||||||
|
|
||||||
var s = 'string';
|
var s = 'string';
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
var assert = require('assert'),
|
var assert = require('assert'),
|
||||||
colors = require('../safe');
|
colors = require('../safe');
|
||||||
|
|
||||||
var s = 'string';
|
var s = 'string';
|
||||||
|
|
||||||
@ -53,4 +53,5 @@ assert.equal(colors.red(testStringWithNewLinesStyled), '\x1b[31m' + '\x1b[4m' +
|
|||||||
colors.setTheme({ error: 'red' });
|
colors.setTheme({ error: 'red' });
|
||||||
|
|
||||||
assert.equal(typeof (colors.red("astring")), 'string');
|
assert.equal(typeof (colors.red("astring")), 'string');
|
||||||
assert.equal(typeof (colors.error("astring")), 'string');
|
assert.equal(typeof (colors.error("astring")), 'string');
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user