Skip to content

Commit b2a5e70

Browse files
committed
test: 更新单元测试
1 parent c1d214e commit b2a5e70

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/UnitTest/Components/SelectGenericTest.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -868,12 +868,13 @@ public async Task IsEditable_Ok()
868868
// 覆盖返回 null 逻辑
869869
cut.SetParametersAndRender(pb =>
870870
{
871-
pb.Add(a => a.TextConvertToValueCallback, v =>
871+
pb.Add(a => a.TextConvertToValueCallback, async v =>
872872
{
873-
return Task.FromResult((string?)null);
873+
await Task.Yield();
874+
return null;
874875
});
875876
});
876-
Assert.Equal("Test4", cut.Instance.Value);
877+
await cut.InvokeAsync(() => { input.Change("Test3"); });
877878
}
878879

879880
[Fact]

0 commit comments

Comments
 (0)