summaryrefslogtreecommitdiff
path: root/HutchTests/HomeViewModelTests.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-11 23:36:36 -0500
committerChristian Cleberg <[email protected]>2026-04-11 23:36:36 -0500
commitce1a59205b30518ee11d99ac043e15d83c27cce2 (patch)
treec24e18e9c3de90700db278b6f378211a7d2bcd73 /HutchTests/HomeViewModelTests.swift
parent00cc231e9b419d27b412036d93457c2cbabe0b16 (diff)
downloadhutch-ce1a59205b30518ee11d99ac043e15d83c27cce2.tar.gz
hutch-ce1a59205b30518ee11d99ac043e15d83c27cce2.tar.bz2
hutch-ce1a59205b30518ee11d99ac043e15d83c27cce2.zip
Fix stale tests for current Swift concurrency model
Diffstat (limited to 'HutchTests/HomeViewModelTests.swift')
-rw-r--r--HutchTests/HomeViewModelTests.swift11
1 files changed, 10 insertions, 1 deletions
diff --git a/HutchTests/HomeViewModelTests.swift b/HutchTests/HomeViewModelTests.swift
index 5475bdd..fef93e0 100644
--- a/HutchTests/HomeViewModelTests.swift
+++ b/HutchTests/HomeViewModelTests.swift
@@ -22,10 +22,19 @@ struct HomeViewModelTests {
func matchesCurrentUserAssigneeNormalizesCanonicalNameAndUsername() {
let currentUser = User(
id: 42,
+ created: nil,
+ updated: nil,
username: "owner",
canonicalName: "~owner",
- avatar: nil
+ url: nil,
+ location: nil,
+ bio: nil,
+ avatar: nil,
+ pronouns: nil,
+ userType: nil,
+ receivesPaidServices: nil,
+ suspensionNotice: nil
)
#expect(HomeViewModel.matchesCurrentUserAssignee(Entity(canonicalName: "~owner"), currentUser: currentUser))