Skip to content

Commit

Permalink
fix(deps): update dependency react-paginate to v8 (#851)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency react-paginate to v8

* chore: adjust test

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Krzysztof Sakwerda <ksakwerda@gmail.com>
  • Loading branch information
renovate[bot] and Averethel committed Apr 19, 2023
1 parent ea2d36a commit 25f8997
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"glob": "^7.1.6",
"lodash.debounce": "^4.0.8",
"react-calendar": "^3.3.1",
"react-paginate": "^7.1.5",
"react-paginate": "^8.0.0",
"react-range": "^1.8.11",
"react-tooltip-lite": "npm:@carforyou/react-tooltip-lite@1.12.1",
"use-deep-compare-effect": "^1.4.0"
Expand Down
6 changes: 3 additions & 3 deletions src/components/__tests__/pagination.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ describe("<Pagination>", () => {
pageLinkBuilder={() => linkBuilder(1, { lng: "de" })}
/>
)
fireEvent.click(screen.getByRole("button", { name: "Page 2" }))
expect(screen.getByRole("button", { name: "Page 2 is your current page" }))
fireEvent.click(screen.getByRole("link", { name: "Page 2" }))
expect(screen.getByRole("link", { name: "Page 2 is your current page" }))
})

it("does not mark inactive page as active", async () => {
Expand All @@ -66,7 +66,7 @@ describe("<Pagination>", () => {
)
fireEvent.click(screen.getByText("2"))
expect(
screen.queryByRole("button", { name: "Page 3 is your current page" })
screen.queryByRole("link", { name: "Page 3 is your current page" })
).not.toBeInTheDocument()
})
})

0 comments on commit 25f8997

Please sign in to comment.