From b311dfacb56d571a2ae316f417e0f92098afba24 Mon Sep 17 00:00:00 2001 From: James Talmage Date: Thu, 18 Dec 2014 19:08:39 -0500 Subject: [PATCH] compact-longhand: verify headers are not rendered with separator --- test/verify-legacy-compatibility-test.js | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/test/verify-legacy-compatibility-test.js b/test/verify-legacy-compatibility-test.js index fbf5acb..f46cc47 100644 --- a/test/verify-legacy-compatibility-test.js +++ b/test/verify-legacy-compatibility-test.js @@ -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: {