Files

14 lines
371 B
Swift

@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")
}
}