mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-12 05:31:41 +00:00
update
This commit is contained in:
20
node_modules/text-table/test/dotalign.js
generated
vendored
Normal file
20
node_modules/text-table/test/dotalign.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
var test = require('tape');
|
||||
var table = require('../');
|
||||
|
||||
test('dot align', function (t) {
|
||||
t.plan(1);
|
||||
var s = table([
|
||||
[ 'beep', '1024' ],
|
||||
[ 'boop', '334.212' ],
|
||||
[ 'foo', '1006' ],
|
||||
[ 'bar', '45.6' ],
|
||||
[ 'baz', '123.' ]
|
||||
], { align: [ 'l', '.' ] });
|
||||
t.equal(s, [
|
||||
'beep 1024',
|
||||
'boop 334.212',
|
||||
'foo 1006',
|
||||
'bar 45.6',
|
||||
'baz 123.'
|
||||
].join('\n'));
|
||||
});
|
Reference in New Issue
Block a user