Skip to content

Commit cc2a033

Browse files
committed
Update test
1 parent db94f1f commit cc2a033

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/design-system/src/elements/toniq-list-table/toniq-list-table.element.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ describe(ToniqListTable.tagName, () => {
4444
<${ToniqListTable.assign(testCase.inputs)}></${ToniqListTable}>
4545
`);
4646
assertInstanceOf(renderedToniqListTable, ToniqListTable);
47-
const renderedRows = renderedToniqListTable.shadowRoot.querySelectorAll(
48-
'.column-wrapper.column-content',
49-
);
47+
const renderedRows = renderedToniqListTable.shadowRoot
48+
.querySelector('.column-wrapper')
49+
?.querySelectorAll('.column-content');
5050

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

5959
return {
6060
// Minus the header row
61-
row: renderedRows.length - 1,
61+
row: renderedRows ? renderedRows.length - 1 : 0,
6262
};
6363
}
6464

0 commit comments

Comments
 (0)