Minor meta tweaks

This commit is contained in:
Sindre Sorhus 2017-06-30 17:19:57 +02:00
parent 5ec90cb354
commit 8d26c1401c
2 changed files with 5 additions and 5 deletions

View file

@ -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": {

View file

@ -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');