Skip to content

Commit edc5da2

Browse files
committed
test: 增加单元测试
1 parent f1cf40a commit edc5da2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/UnitTest/Components/UploadAvatarTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ await cut.InvokeAsync(() => input.Instance.OnChange.InvokeAsync(new InputFileCha
7676
new()
7777
})));
7878

79+
// call preview
80+
await cut.InvokeAsync(() => cut.Instance.Preview());
81+
7982
// upload-item-delete
8083
var button = cut.Find(".upload-item-delete");
8184
await cut.InvokeAsync(() => button.Click());

0 commit comments

Comments
 (0)