mirror of
https://github.com/block/buzz.git
synced 2026-10-29 21:41:33 +00:00
fix(push-demo): use clock icons for reminders
Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
@@ -137,11 +137,7 @@ enum BuzzPushReminderPreset: CaseIterable, Equatable {
|
||||
}
|
||||
|
||||
var systemImageName: String {
|
||||
switch self {
|
||||
case .oneHour: "clock"
|
||||
case .tomorrowAt9AM: "sun.max"
|
||||
case .nextMondayAt9AM: "calendar"
|
||||
}
|
||||
"clock"
|
||||
}
|
||||
|
||||
func fireDate(now: Date, calendar: Calendar) -> Date? {
|
||||
|
||||
@@ -226,6 +226,7 @@ final class BuzzPushNotificationResponseTests: XCTestCase {
|
||||
["Reply", "Remind Me in 1 Hour", "Remind Me Tomorrow", "Remind Me Next Week"]
|
||||
)
|
||||
XCTAssertTrue(category.actions.allSatisfy { $0.icon != nil })
|
||||
XCTAssertEqual(BuzzPushReminderPreset.allCases.map(\.systemImageName), ["clock", "clock", "clock"])
|
||||
}
|
||||
|
||||
func testBackgroundCompletionReturnsToMainThreadExactlyOnce() {
|
||||
|
||||
Reference in New Issue
Block a user