Reformatted the tests for the Notifying package tests.
This commit is contained in:
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user