Skip to content

Commit 06f333b

Browse files
tests: fix pagination
1 parent d9261c4 commit 06f333b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/components/pagination.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ test('pagination - number button click', async () => {
109109
expect(button3).not.toHaveClass('is-disabled');
110110
});
111111

112-
test('shows no controls', () => {
112+
test('shows no active controls', () => {
113113
const { queryByLabelText } = render(Pagination, {
114114
limit: 25,
115115
offset: 0,
116116
sum: 10
117117
});
118118

119-
expect(queryByLabelText('prev page')).not.toBeInTheDocument();
120-
expect(queryByLabelText('next page')).not.toBeInTheDocument();
119+
expect(queryByLabelText('prev page')).toHaveClass('is-disabled');
120+
expect(queryByLabelText('next page')).toHaveClass('is-disabled');
121121
});

0 commit comments

Comments
 (0)