restores Helder in all its glory
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
@testable import HelderUI
|
||||
import Testing
|
||||
|
||||
@MainActor
|
||||
@Suite struct ToastStoreTests {
|
||||
@Test func toastsStackInArrivalOrder() {
|
||||
let toasts = ToastStore()
|
||||
toasts.show("Saved", detail: "a.php")
|
||||
toasts.show("Pushed")
|
||||
#expect(toasts.toasts.map(\.title) == ["Saved", "Pushed"])
|
||||
#expect(toasts.toasts.first?.detail == "a.php")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user