1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 19:04:46 +00:00

feat: update pnpm workspace and dependencies, migrate to tsdown for builds

This commit is contained in:
2026-02-14 03:49:10 +07:00
parent a9a6c04176
commit efadb5fe28
17 changed files with 2898 additions and 3957 deletions

View File

@@ -69,7 +69,7 @@ describe('useOffsetPagination', () => {
await nextTick();
expect(onPageChange).toHaveBeenCalledTimes(1);
expect(onPageChange).toHaveBeenCalledWith(expect.objectContaining({ currentPage: currentPage.value }));
expect(onPageChange.mock.calls[0]![0]).toHaveProperty('currentPage', currentPage.value);
});
it('call onPageSizeChange callback', async () => {
@@ -81,7 +81,7 @@ describe('useOffsetPagination', () => {
await nextTick();
expect(onPageSizeChange).toHaveBeenCalledTimes(1);
expect(onPageSizeChange).toHaveBeenCalledWith(expect.objectContaining({ currentPageSize: currentPageSize.value }));
expect(onPageSizeChange.mock.calls[0]![0]).toHaveProperty('currentPageSize', currentPageSize.value);
});
it('call onPageCountChange callback', async () => {
@@ -93,7 +93,7 @@ describe('useOffsetPagination', () => {
await nextTick();
expect(onTotalPagesChange).toHaveBeenCalledTimes(1);
expect(onTotalPagesChange).toHaveBeenCalledWith(expect.objectContaining({ totalPages: totalPages.value }));
expect(onTotalPagesChange.mock.calls[0]![0]).toHaveProperty('totalPages', totalPages.value);
});
it('handle complex reactive options', async () => {