Skip to content

Commit 8c7e277

Browse files
committed
test: 更新单元测试
1 parent df7a394 commit 8c7e277

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/UnitTest/Components/SelectTest.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -738,12 +738,8 @@ public async Task IsVirtualize_OnQueryAsync_Clearable_Ok()
738738
return Task.FromResult(new QueryData<SelectedItem>()
739739
{
740740
Items = string.IsNullOrEmpty(searchText)
741-
? new SelectedItem[]
742-
{
743-
new("", "All"),
744-
new("1", "Test1"),
745-
new("2", "Test2")
746-
} : [new("2", "Test2")],
741+
? [new("", "All"), new("1", "Test1"), new("2", "Test2")]
742+
: [new("2", "Test2")],
747743
TotalCount = string.IsNullOrEmpty(searchText) ? 2 : 1
748744
});
749745
});

0 commit comments

Comments
 (0)