Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
ponnexcodev committed Oct 23, 2024
1 parent db94f1f commit cc2a033
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ describe(ToniqListTable.tagName, () => {
<${ToniqListTable.assign(testCase.inputs)}></${ToniqListTable}>
`);
assertInstanceOf(renderedToniqListTable, ToniqListTable);
const renderedRows = renderedToniqListTable.shadowRoot.querySelectorAll(
'.column-wrapper.column-content',
);
const renderedRows = renderedToniqListTable.shadowRoot
.querySelector('.column-wrapper')
?.querySelectorAll('.column-content');

if (testCase.inputs.pagination) {
assertInstanceOf(renderedToniqListTable, ToniqListTable);
Expand All @@ -58,7 +58,7 @@ describe(ToniqListTable.tagName, () => {

return {
// Minus the header row
row: renderedRows.length - 1,
row: renderedRows ? renderedRows.length - 1 : 0,
};
}

Expand Down

0 comments on commit cc2a033

Please sign in to comment.