Skip to content
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.

Commit

Permalink
compact-longhand: verify headers are not rendered with separator
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestalmage committed Dec 19, 2014
1 parent 4dce72e commit b311dfa
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/verify-legacy-compatibility-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,31 @@
expect(table.toString()).to.equal(expected.join('\n'));
});

it('compact longhand - headers are not rendered with separator',function(){
var table = new Table({
chars: {
'mid': ''
, 'left-mid': ''
, 'mid-mid': ''
, 'right-mid': ''
},
head:['hello','goodbye'],
style:{border:[],head:[]}}
);

table.push(['hola','adios'],['hi','bye']);

var expected = [
'┌───────┬─────────┐'
, '│ hello │ goodbye │'
, '│ hola │ adios │'
, '│ hi │ bye │'
, '└───────┴─────────┘'
];

expect(table.toString()).to.equal(expected.join('\n'));
});

it('compact longhand',function(){
var table = new Table({
chars: {
Expand Down

0 comments on commit b311dfa

Please sign in to comment.