Skip to content

Commit 949b10e

Browse files
committed
refactor: 更新单元测试
1 parent 3ea5da3 commit 949b10e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/UnitTest/Components/TableTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,7 @@ public async Task PageItemsSource_Ok()
980980
pb.Add(a => a.RenderMode, TableRenderMode.Table);
981981
pb.Add(a => a.PageItemsSource, [2, 4, 8]);
982982
pb.Add(a => a.IsPagination, true);
983+
pb.Add(a => a.IsAutoScrollTopWhenClickPage, true);
983984
pb.Add(a => a.OnQueryAsync, OnQueryAsync(localizer));
984985
pb.Add(a => a.TableColumns, foo => builder =>
985986
{
@@ -1058,7 +1059,7 @@ Task<QueryData<Foo>> MockOnQueryAsync(QueryPageOptions options)
10581059
return Task.FromResult(new QueryData<Foo>()
10591060
{
10601061
Items = items,
1061-
TotalCount = items.Count(),
1062+
TotalCount = 80,
10621063
IsAdvanceSearch = true,
10631064
IsFiltered = true,
10641065
IsSearch = true,

0 commit comments

Comments
 (0)