main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
393 bytes
|
Rev | Line | |
---|
[d565449] | 1 | var test = require('tape');
|
---|
| 2 | var table = require('../');
|
---|
| 3 |
|
---|
| 4 | test('align', function (t) {
|
---|
| 5 | t.plan(1);
|
---|
| 6 | var s = table([
|
---|
| 7 | [ 'beep', '1024' ],
|
---|
| 8 | [ 'boop', '33450' ],
|
---|
| 9 | [ 'foo', '1006' ],
|
---|
| 10 | [ 'bar', '45' ]
|
---|
| 11 | ], { align: [ 'l', 'r' ] });
|
---|
| 12 | t.equal(s, [
|
---|
| 13 | 'beep 1024',
|
---|
| 14 | 'boop 33450',
|
---|
| 15 | 'foo 1006',
|
---|
| 16 | 'bar 45'
|
---|
| 17 | ].join('\n'));
|
---|
| 18 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.