Skip to content

Commit dedea8c

Browse files
committed
test: 更新单元测试
1 parent 845d565 commit dedea8c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test/UnitTest/Components/TableNotSupportFilterTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ public void OnFilterAsync_Ok()
1212
{
1313
var cut = Context.RenderComponent<TableColumnFilter>(pb =>
1414
{
15+
pb.Add(a => a.NotSupportedMessage, "不支持的类型");
1516
pb.Add(a => a.Table, new MockTable());
1617
pb.Add(a => a.Column, new MockColumn());
1718
});
1819

19-
cut.Contains("不支持的类型,请使用 FilterTemplate 自定义过滤组件");
20+
cut.Contains("不支持的类型");
2021

2122
var filter = cut.FindComponent<NotSupportFilter>();
2223
var conditions = filter.Instance.GetFilterConditions();

test/UnitTest/Components/TableTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ public async Task CustomSearch_Ok()
451451
{
452452
pb.AddChildContent<Table<Foo>>(pb =>
453453
{
454+
pb.Add(a => a.NotSupportedMessage, "test-not-support");
454455
pb.Add(a => a.SearchText, "张三");
455456
pb.Add(a => a.TableColumns, foo => builder =>
456457
{

0 commit comments

Comments
 (0)