mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-06 01:00:18 +02:00
15 lines
579 B
Swift
15 lines
579 B
Swift
import XCTest
|
|
import UserNotifications
|
|
@testable import Frame_Control
|
|
|
|
final class ComfortNotificationTests: XCTestCase {
|
|
func testNotificationContentAndBounds() {
|
|
let content = WebShell.Coordinator.notificationContent("Time for a break")
|
|
XCTAssertEqual(content?.title, "Frame Control")
|
|
XCTAssertEqual(content?.body, "Time for a break")
|
|
XCTAssertNotNil(content?.sound)
|
|
XCTAssertNil(WebShell.Coordinator.notificationContent(""))
|
|
XCTAssertNil(WebShell.Coordinator.notificationContent(String(repeating: "x", count: 501)))
|
|
}
|
|
}
|