From 83ac1cf4e48176df30571cd65e313d830c07284d Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sun, 5 Jul 2026 16:21:30 +0200 Subject: [PATCH] Reformatted the tests for the Notifying package tests. --- .../Notifying/Models/AppNotificationTests.swift | 9 ++++++--- .../Tests/Notifying/View Models/NotifierTests.swift | 12 ++++++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Packages/Features/Tests/Notifying/Models/AppNotificationTests.swift b/Packages/Features/Tests/Notifying/Models/AppNotificationTests.swift index 794346e..d125616 100644 --- a/Packages/Features/Tests/Notifying/Models/AppNotificationTests.swift +++ b/Packages/Features/Tests/Notifying/Models/AppNotificationTests.swift @@ -30,7 +30,8 @@ struct AppNotificationTests { #expect(notification.symbol == "bell") } - @Test func `initializer stores the given identifier`() { + @Test + func `initializer stores the given identifier`() { let id = UUID() let notification = AppNotification( id: id, @@ -49,7 +50,8 @@ struct AppNotificationTests { @Suite("Equatable") struct EquatableConformance { - @Test func `notifications with the same identifier and values are equal`() { + @Test + func `notifications with the same identifier and values are equal`() { let id = UUID() let first = AppNotification( @@ -68,7 +70,8 @@ struct AppNotificationTests { #expect(first == second) } - @Test func `notifications with generated identifiers are never equal`() { + @Test + func `notifications with generated identifiers are never equal`() { let first = AppNotification( kind: .info, message: "Something happened.", diff --git a/Packages/Features/Tests/Notifying/View Models/NotifierTests.swift b/Packages/Features/Tests/Notifying/View Models/NotifierTests.swift index c80e1c1..614b3a3 100644 --- a/Packages/Features/Tests/Notifying/View Models/NotifierTests.swift +++ b/Packages/Features/Tests/Notifying/View Models/NotifierTests.swift @@ -12,7 +12,8 @@ struct NotifierTests { @Suite("Posting") struct Posting { - @Test func `posting appends a notification with the given values`() { + @Test + func `posting appends a notification with the given values`() { let notifier = Notifier() notifier.post( @@ -27,7 +28,8 @@ struct NotifierTests { #expect(notifier.notifications.first?.symbol == "info.circle") } - @Test func `posted notifications stack in post order`() { + @Test + func `posted notifications stack in post order`() { let notifier = Notifier() notifier.post( @@ -57,7 +59,8 @@ struct NotifierTests { @Suite("Dismissal") struct Dismissal { - @Test func `a notification dismisses itself after the delay`() async throws { + @Test + func `a notification dismisses itself after the delay`() async throws { let notifier = Notifier( delayDismissal: .seconds(0.2) ) @@ -77,7 +80,8 @@ struct NotifierTests { #expect(notifier.notifications.isEmpty) } - @Test func `notifications dismiss independently`() async throws { + @Test + func `notifications dismiss independently`() async throws { let notifier = Notifier( delayDismissal: .seconds(0.3) )