Minor meta tweaks
This commit is contained in:
parent
5ec90cb354
commit
8d26c1401c
2 changed files with 5 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "chalk",
|
||||
"version": "2.0.1",
|
||||
"description": "Terminal string styling done right. Much color",
|
||||
"description": "Terminal string styling done right",
|
||||
"license": "MIT",
|
||||
"repository": "chalk/chalk",
|
||||
"engines": {
|
||||
|
|
|
|||
8
test.js
8
test.js
|
|
@ -15,8 +15,8 @@ require.cache[resolveFrom(__dirname, 'supports-color')] = {
|
|||
|
||||
const chalk = require('.');
|
||||
|
||||
console.log('host TERM=', process.env.TERM || '[none]');
|
||||
console.log('host platform=', process.platform || '[unknown]');
|
||||
console.log('TERM:', process.env.TERM || '[none]');
|
||||
console.log('platform:', process.platform || '[unknown]');
|
||||
|
||||
describe('chalk', () => {
|
||||
it('should not add any styling when called as the base function', () => {
|
||||
|
|
@ -111,7 +111,7 @@ describe('chalk', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('chalk on windows', () => {
|
||||
describe('chalk on Windows', () => {
|
||||
let originalEnv;
|
||||
let originalPlatform;
|
||||
|
||||
|
|
@ -235,7 +235,7 @@ describe('chalk.enabled', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('chalk.constructor', () => {
|
||||
describe('chalk.constructor()', () => {
|
||||
it('should create an isolated context where colors can be disabled (by level)', () => {
|
||||
const ctx = new chalk.constructor({level: 0, enabled: true});
|
||||
assert.equal(ctx.red('foo'), 'foo');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue