Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

View File

@ -0,0 +1,20 @@
import {
expect
} from 'chai';
import calculateCellWidthIndex from './../src/calculateCellWidthIndex';
describe('calculateCellWidthIndex', () => {
context('all cells have different width', () => {
it('describes each cell contents width', () => {
const cellWidthIndex = calculateCellWidthIndex([
'a',
'aaa',
'aaaaaa'
]);
expect(cellWidthIndex[0]).to.equal(1, 'first column');
expect(cellWidthIndex[1]).to.equal(3, 'second column');
expect(cellWidthIndex[2]).to.equal(6, 'third column');
});
});
});