Skip to content

Commit 6700b60

Browse files
committed
test: 更新单元测试
1 parent e71551d commit 6700b60

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/UnitTest/Components/LayoutTest.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@ public void IsFixedTabHeader_OK()
6262
Assert.Contains("is-fixed-tab", cut.Markup);
6363
}
6464

65+
[Fact]
66+
public void IsPage_OK()
67+
{
68+
var cut = Context.RenderComponent<Layout>(pb =>
69+
{
70+
pb.Add(a => a.IsPage, true);
71+
pb.Add(a => a.UseTabSet, true);
72+
pb.Add(a => a.IsFixedTabHeader, true);
73+
});
74+
Assert.Contains("--bb-layout-height: 100vh;", cut.Markup);
75+
}
76+
6577
[Fact]
6678
public void IsCollapsed_OK()
6779
{

0 commit comments

Comments
 (0)