table.js 326 B

123456789101112131415
  1. var test = require('tape');
  2. var table = require('../');
  3. test('table', function (t) {
  4. t.plan(1);
  5. var s = table([
  6. [ 'master', '0123456789abcdef' ],
  7. [ 'staging', 'fedcba9876543210' ]
  8. ]);
  9. t.equal(s, [
  10. 'master 0123456789abcdef',
  11. 'staging fedcba9876543210'
  12. ].join('\n'));
  13. });