Skip to content

Commit 22b98c7

Browse files
committed
wip
1 parent ba92711 commit 22b98c7

File tree

1 file changed

+52
-50
lines changed

1 file changed

+52
-50
lines changed

Examples/RemindersTests/SearchRemindersTests.swift

Lines changed: 52 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -67,60 +67,62 @@ extension BaseTestSuite {
6767
let model = SearchRemindersModel()
6868
model.searchText = "Take"
6969
try await model.showCompletedButtonTapped()
70-
try await model.$searchResults.load()
71-
try await model.searchTask?.value
7270

73-
assertInlineSnapshot(of: model.searchResults.rows, as: .customDump) {
74-
"""
75-
[
76-
[0]: SearchRemindersModel.Row(
77-
isPastDue: false,
78-
notes: "",
79-
reminder: Reminder(
80-
id: UUID(00000000-0000-0000-0000-00000000000A),
81-
dueDate: Date(2009-02-17T23:31:30.000Z),
82-
isCompleted: false,
83-
isFlagged: false,
71+
withKnownIssue(
72+
"'@Fetch' introduces an escaping closure and loses the task-local dependency"
73+
) {
74+
assertInlineSnapshot(of: model.searchResults.rows, as: .customDump) {
75+
"""
76+
[
77+
[0]: SearchRemindersModel.Row(
78+
isPastDue: false,
8479
notes: "",
85-
position: 8,
86-
priority: .high,
87-
remindersListID: UUID(00000000-0000-0000-0000-000000000001),
88-
title: "Take out trash"
89-
),
90-
remindersList: RemindersList(
91-
id: UUID(00000000-0000-0000-0000-000000000001),
92-
color: 3985191935,
93-
position: 2,
94-
title: "Family"
80+
reminder: Reminder(
81+
id: UUID(00000000-0000-0000-0000-00000000000A),
82+
dueDate: Date(2009-02-17T23:31:30.000Z),
83+
isCompleted: false,
84+
isFlagged: false,
85+
notes: "",
86+
position: 8,
87+
priority: .high,
88+
remindersListID: UUID(00000000-0000-0000-0000-000000000001),
89+
title: "Take out trash"
90+
),
91+
remindersList: RemindersList(
92+
id: UUID(00000000-0000-0000-0000-000000000001),
93+
color: 3985191935,
94+
position: 2,
95+
title: "Family"
96+
),
97+
tags: "",
98+
title: "**Take** out trash"
9599
),
96-
tags: "",
97-
title: "**Take** out trash"
98-
),
99-
[1]: SearchRemindersModel.Row(
100-
isPastDue: false,
101-
notes: "",
102-
reminder: Reminder(
103-
id: UUID(00000000-0000-0000-0000-000000000006),
104-
dueDate: Date(2008-08-07T23:31:30.000Z),
105-
isCompleted: true,
106-
isFlagged: false,
100+
[1]: SearchRemindersModel.Row(
101+
isPastDue: false,
107102
notes: "",
108-
position: 4,
109-
priority: nil,
110-
remindersListID: UUID(00000000-0000-0000-0000-000000000000),
111-
title: "Take a walk"
112-
),
113-
remindersList: RemindersList(
114-
id: UUID(00000000-0000-0000-0000-000000000000),
115-
color: 1218047999,
116-
position: 1,
117-
title: "Personal"
118-
),
119-
tags: "#car #kids #social",
120-
title: "**Take** a walk"
121-
)
122-
]
123-
"""
103+
reminder: Reminder(
104+
id: UUID(00000000-0000-0000-0000-000000000006),
105+
dueDate: Date(2008-08-07T23:31:30.000Z),
106+
isCompleted: true,
107+
isFlagged: false,
108+
notes: "",
109+
position: 4,
110+
priority: nil,
111+
remindersListID: UUID(00000000-0000-0000-0000-000000000000),
112+
title: "Take a walk"
113+
),
114+
remindersList: RemindersList(
115+
id: UUID(00000000-0000-0000-0000-000000000000),
116+
color: 1218047999,
117+
position: 1,
118+
title: "Personal"
119+
),
120+
tags: "#car #kids #social",
121+
title: "**Take** a walk"
122+
)
123+
]
124+
"""
125+
}
124126
}
125127
}
126128

0 commit comments

Comments
 (0)