Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
466 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var test = require('tape');
|
---|
| 2 | var table = require('../');
|
---|
| 3 |
|
---|
| 4 | test('center', function (t) {
|
---|
| 5 | t.plan(1);
|
---|
| 6 | var s = table([
|
---|
| 7 | [ 'beep', '1024', 'xyz' ],
|
---|
| 8 | [ 'boop', '3388450', 'tuv' ],
|
---|
| 9 | [ 'foo', '10106', 'qrstuv' ],
|
---|
| 10 | [ 'bar', '45', 'lmno' ]
|
---|
| 11 | ], { align: [ 'l', 'c', 'l' ] });
|
---|
| 12 | t.equal(s, [
|
---|
| 13 | 'beep 1024 xyz',
|
---|
| 14 | 'boop 3388450 tuv',
|
---|
| 15 | 'foo 10106 qrstuv',
|
---|
| 16 | 'bar 45 lmno'
|
---|
| 17 | ].join('\n'));
|
---|
| 18 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.