cli-columns
Advanced tools
Comparing version 3.1.0 to 3.1.1
{ | ||
"name": "cli-columns", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Columnated lists for the CLI.", | ||
@@ -37,7 +37,7 @@ "scripts": { | ||
"devDependencies": { | ||
"ava": "^0.18.1", | ||
"ava": "^0.19.1", | ||
"chalk": "^1.1.3", | ||
"coveralls": "^2.11.16", | ||
"nyc": "^10.1.2", | ||
"xo": "^0.17.1" | ||
"coveralls": "^2.13.1", | ||
"nyc": "^11.0.2", | ||
"xo": "^0.18.2" | ||
}, | ||
@@ -44,0 +44,0 @@ "engines": { |
24
test.js
@@ -6,8 +6,8 @@ import test from 'ava'; | ||
test('should print one column list', async t => { | ||
var cols = columns(['foo', ['bar', 'baz'], ['bar', 'qux']], { | ||
test('should print one column list', t => { | ||
const cols = columns(['foo', ['bar', 'baz'], ['bar', 'qux']], { | ||
width: 1 | ||
}); | ||
var expected = | ||
const expected = | ||
'bar\n' + | ||
@@ -22,8 +22,8 @@ 'bar\n' + | ||
test('should print three column list', async t => { | ||
var cols = columns(['foo', ['bar', 'baz'], ['bat', 'qux']], { | ||
test('should print three column list', t => { | ||
const cols = columns(['foo', ['bar', 'baz'], ['bat', 'qux']], { | ||
width: 16 | ||
}); | ||
var expected = | ||
const expected = | ||
'bar baz qux \n' + | ||
@@ -35,4 +35,4 @@ 'bat foo '; | ||
test('should print complex list', async t => { | ||
var cols = columns( | ||
test('should print complex list', t => { | ||
const cols = columns( | ||
[ | ||
@@ -51,3 +51,3 @@ 'foo', 'bar', 'baz', | ||
var expected = | ||
const expected = | ||
'apple bar durian star fruit \n' + | ||
@@ -60,4 +60,4 @@ 'apricot baz foo 嶜憃撊 噾噿嚁 \n' + | ||
test('should optionally not sort', async t => { | ||
var cols = columns( | ||
test('should optionally not sort', t => { | ||
const cols = columns( | ||
[ | ||
@@ -77,3 +77,3 @@ 'foo', 'bar', 'baz', | ||
var expected = | ||
const expected = | ||
'foo 嶜憃撊 噾噿嚁 pomegranate apricot \n' + | ||
@@ -80,0 +80,0 @@ 'bar blueberry durian banana pineapple \n' + |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6983