Skip to content

Commit e31091d

Browse files
thetarnavgithub-actions[bot]
authored andcommitted
Format
1 parent 0ec56b0 commit e31091d

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

packages/pagination/test/index.test.ts

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,23 @@ describe("createPagination", () => {
8181
dispose();
8282
}));
8383

84-
test("createPagination next back", () => {
85-
createRoot(dispose => {
86-
const [paginationProps, page, setPage] = createPagination({ pages: 100, maxPages: 1, showFirst: false, initialPage: 3 });
87-
var back = paginationProps()[0]
88-
var next = paginationProps()[2]
89-
90-
expect(back?.page, "back page should be 2").toStrictEqual(2)
91-
expect(next?.page, "next page should be 4").toStrictEqual(4)
92-
93-
dispose();
84+
test("createPagination next back", () => {
85+
createRoot(dispose => {
86+
const [paginationProps, page, setPage] = createPagination({
87+
pages: 100,
88+
maxPages: 1,
89+
showFirst: false,
90+
initialPage: 3,
9491
});
92+
var back = paginationProps()[0];
93+
var next = paginationProps()[2];
94+
95+
expect(back?.page, "back page should be 2").toStrictEqual(2);
96+
expect(next?.page, "next page should be 4").toStrictEqual(4);
97+
98+
dispose();
9599
});
100+
});
96101
});
97102

98103
//@ts-ignore

0 commit comments

Comments
 (0)