Skip to content

Commit 60d29bb

Browse files
committed
refactor(AvatarUpload): Update unit test
1 parent a1c3b55 commit 60d29bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/UnitTest/Components/UploadAvatarTest.cs

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

79-
// call preview
80-
await cut.InvokeAsync(() => cut.Instance.Preview());
79+
// call preview // without using reflection, it is not possible to obtain the actual runtime values.
80+
await cut.InvokeAsync(() => cut.Instance.Preview(""));
8181

8282
// upload-item-delete
8383
var button = cut.Find(".upload-item-delete");

0 commit comments

Comments
 (0)