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

Commit

Permalink
Verify what happens with multiple values in a cross table.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestalmage committed Dec 19, 2014
1 parent e4ad834 commit 4dce72e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/verify-legacy-compatibility-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,20 @@

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

it('objects with multiple properties in a cross-table',function(){
var table = new Table({style:{border:[],head:[]}});

table.push(
{'a':['b'], c:['d']} // value of property 'c' will be discarded
);

var expected = [
'┌───┬───┐'
, '│ a │ b │'
, '└───┴───┘'
];
expect(table.toString()).to.equal(expected.join('\n'));
});
}
})();

0 comments on commit 4dce72e

Please sign in to comment.