Skip to content

Commit acb9b24

Browse files
committed
test: 更新单元测试
1 parent be85122 commit acb9b24

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/UnitTest/Components/TableTest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4916,7 +4916,7 @@ public void ShowTips_Ok(bool markup)
49164916
}
49174917

49184918
[Fact]
4919-
public void GetTooltipTextCallback_Ok()
4919+
public void GetTooltipText_Ok()
49204920
{
49214921
var localizer = Context.Services.GetRequiredService<IStringLocalizer<Foo>>();
49224922
var items = Foo.GenerateFoo(localizer, 2);
@@ -4934,9 +4934,8 @@ public void GetTooltipTextCallback_Ok()
49344934
builder.AddAttribute(3, "Editable", true);
49354935
builder.AddAttribute(7, "Text", "test");
49364936
builder.AddAttribute(9, "ShowTips", true);
4937-
builder.AddAttribute(10, "GetTooltipTextCallback", new Func<object, Task<string?>>(async v =>
4937+
builder.AddAttribute(10, "GetTooltipText", new Func<object, string?>(v =>
49384938
{
4939-
await Task.Delay(0);
49404939
return "test-tips-callback";
49414940
}));
49424941
builder.CloseComponent();

0 commit comments

Comments
 (0)