Skip to content

Commit 596a502

Browse files
committed
test: 更新单元测试
1 parent cbd50a8 commit 596a502

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/UnitTest/Components/ImageTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public void IsIntersectionObserver_Ok()
128128
{
129129
var cut = Context.RenderComponent<ImageViewer>(pb =>
130130
{
131+
pb.Add(a => a.ZoomSpeed, 0.5d);
131132
pb.Add(a => a.Url, "https://www.blazor.zone/images/logo.png");
132133
pb.Add(a => a.IsIntersectionObserver, true);
133134
});
@@ -139,7 +140,6 @@ public void ImagerViewer_Show()
139140
{
140141
var cut = Context.RenderComponent<ImagePreviewer>(pb =>
141142
{
142-
pb.Add(a => a.ZoomSpeed, 0.5d);
143143
pb.Add(a => a.PreviewList, ["v1", "v2"]);
144144
});
145145
cut.Instance.Show();

0 commit comments

Comments
 (0)