source: imaps-frontend/node_modules/text-table/test/doubledot.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 476 bytes
Line 
1var test = require('tape');
2var table = require('../');
3
4test('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});
Note: See TracBrowser for help on using the repository browser.