Skip to content

Commit cc4e2ef

Browse files
authored
test(Pagination): fix failing test case due to type casting (#661)
2 parents 9b6c336 + a03a73c commit cc4e2ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mocks/pagination.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ export class MockPagination extends LitElement {
6565
.slice(indexOfFirstItem, indexOfLastItem)
6666
.map(post => [post.id, post.title, post.body]);
6767

68-
const table = this.shadowRoot?.querySelector("sgds-table") as SgdsTable;
69-
const pagination = this.shadowRoot?.querySelector("sgds-pagination") as SgdsPagination;
68+
const table = this.shadowRoot?.querySelector<SgdsTable>("sgds-table");
69+
const pagination = this.shadowRoot?.querySelector<SgdsPagination>("sgds-pagination");
7070

7171
if (table && pagination) {
7272
table.rowHeader = this.rowHeader;

0 commit comments

Comments
 (0)