projects
/
platform
/
upstream
/
nodejs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
npm: Upgrade to 1.3.17
[platform/upstream/nodejs.git]
/
deps
/
npm
/
node_modules
/
text-table
/
test
/
doubledot.js
1
var test = require('tape');
2
var table = require('../');
3
4
test('dot align', function (t) {
5
t.plan(1);
6
var s = table([
7
[ '0.1.2' ],
8
[ '11.22.33' ],
9
[ '5.6.7' ],
10
[ '1.22222' ],
11
[ '12345.' ],
12
[ '5555.' ],
13
[ '123' ]
14
], { align: [ '.' ] });
15
t.equal(s, [
16
' 0.1.2',
17
'11.22.33',
18
' 5.6.7',
19
' 1.22222',
20
'12345.',
21
' 5555.',
22
' 123'
23
].join('\n'));
24
});