Skip to content

Commit

Permalink
Fix test lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arminmeh committed Apr 21, 2024
1 parent dd662cf commit 08b15b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,13 +575,13 @@ async function initializeEnvironment(
.first()
.evaluate((node) => node.clientWidth);

const groupHeaderColumnsTotalWidth = await columns.evaluateAll((columns) =>
const groupHeaderColumnsTotalWidth = await columns.evaluateAll((elements) =>
// last column is not part of the group
columns.slice(0, -1).reduce((acc, column) => acc + column.clientWidth, 0),
elements.slice(0, -1).reduce((acc, element) => acc + element.clientWidth, 0),
);
const subGroupHeaderColumnsTotalWidth = await columns.evaluateAll((columns) =>
const subGroupHeaderColumnsTotalWidth = await columns.evaluateAll((elements) =>
// first and last columns are not part of the sub-group
columns.slice(1, -1).reduce((acc, column) => acc + column.clientWidth, 0),
elements.slice(1, -1).reduce((acc, element) => acc + element.clientWidth, 0),
);

expect(groupHeaderWidth).to.equal(groupHeaderColumnsTotalWidth);
Expand Down

0 comments on commit 08b15b9

Please sign in to comment.